I set my BubbleSeries MinSize to 2.0f and MaxSize to 2.5f, then add a bubble with size 2.0, but it shows up with a bigger size 2.5 if it is the only one bubble in the series. If there are different size bubbles in the series, all of them show up with proper size. How to let the bubble shows up with correct size if there is only one-size bubbles in the series?
Here is my code:
BubbleSeries m_Bubble = (BubbleSeries)mainChart.Series.Add(SeriesType.Bubble);
m_Bubble.Appearance.FillMode = AppearanceFillMode.DataPoints;
m_Bubble.DataLabels.Mode = DataLabelsMode.None;
m_Bubble.Legend.Format = “<label> X:<xvalue> Y:<value> Size:<size>”;
m_Bubble.Legend.Mode = SeriesLegendMode.DataPoints;
m_Bubble.MinSize = 2.0f;
m_Bubble.MaxSize = 2.5f;
m_Bubble.UseXValues = true;
m_Bubble.BubbleStyle = PointStyle.DiagonalCross;
m_Bubble.Shadow.Type = ShadowType.None;
m_Bubble.UseXValues = true;
m_Bubble.BubbleBorder.Color = descriptor.LineColor;
m_Bubble.BubbleBorder.Width = 2;
m_Bubble.Name = “anyName”;
FillEffect fillEffect = new FillEffect(Color.LightBlue);
m_Bubble.AddBubble(yValue, xValue, 2.0f, sb.ToString(), fillEffect, null);
Thanks,
Jerry
Imported from legacy forums. Posted by Jerry (had 3210 views)