Bubble chart using code

Jun 26, 2014 at 12:35 PM
Hi.

I am trying to create a bubble chart which they have different color depending on some other attributes. I am unable to do it in on series.

if I break colors in different series the size relevance will not be in the chart. here is code I am using but I dont know where to set the size of bubble.

SeriesData newMarker = new SeriesData()
            {
                X = item.Mov_Seq,
                Y = int.Parse(item.settlement.ToString()),
                Color = System.Drawing.Color.Green,

            };
            newMarker.Marker = new SeriesDataMarker();                    
            newMarker.Marker.LineColor = System.Drawing.Color.Black;
            newMarker.Marker.FillColor = System.Drawing.Color.Yellow;                    
            ClaimsDataArrayGreen[counterGreen] = newMarker;
Sep 11, 2014 at 5:23 AM
Hi ,
please refer to code below
var se1 = new Series
                            {
                                Name = metric.DomainName,
                                // Data = new Data(dataDrillDown),
                                Data = new Data(new object[]
                                {
                                    new object[] {x value, y value , Size}
                                }),
                                PlotOptionsBubble = new PlotOptionsBubble
                                {
                                    Marker = new PlotOptionsBubbleMarker
                                    { 
                                        FillColor = new BackColorOrGradient(new Gradient
                                        {
                                            RadialGradient = new RadialGradient {Cx = 0.4, Cy = 0.3, R = 0.7},
                                            
                                            Stops = new object[,]
                                            {
                                                {
                                                    0,
                                               //     ColorTranslator.FromHtml(ClearTargetGlobalSettings.ColourValues[colorCount]) -> your color 
                                                },
                                                {
                                                    1,
//                                                    ColorTranslator.FromHtml(ClearTargetGlobalSettings.ColourValues[colorCount])  -> your color
                                                }
                                            }
                                        })
                                    }
                                }

                            };
Coordinator
Oct 24, 2014 at 2:36 PM
Hi mahdiaskari,

Do you still have this problem?

Regards,
Vangi