Bubble chart using code

Jun 26, 2014 at 12:32 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;
Jun 26, 2014 at 12:35 PM
if I try this

ClaimsDataArrayGreen[counterGreen] = new object[] { item.Mov_Seq, item.settlement, item.settlement };

I dont know how to change the color of each bubble later.

Highcharts chart = new Highcharts("chart")
           .InitChart(new Chart { ZoomType = ZoomTypes.X })
           .SetTitle(new Title { Text = "Claims Analysis" })
           .SetXAxis(new XAxis { Type = AxisTypes.Category })
           .SetYAxis(new YAxis { Title = new YAxisTitle { Text = string.Empty } })
           .SetLegend(new Legend { Enabled = false })
           .SetTooltip(new Tooltip
           {
               Crosshairs = new Crosshairs(true),
               Shadow = true,
               ValueSuffix = " £"
           })
           .SetSeries(new Series[] { benchMarkHighlight, claimSeriesGreen });
        ltChart1.Text = chart.ToHtmlString();
Sep 29, 2014 at 5:24 AM
Hi, I've not tried bubble chart before, but it sounds fun. Here's a guide for chart, hope it'll help. :D