User (Legacy) Posted February 13, 2007 Report Share Posted February 13, 2007 I succed to set the color of bubble in a bubble chart using hardcoded color and point number Chart1.Points[0, 1].Color = Color.Tomato; My problem is that I would like to set different colors for all bubbles where the color of the bubble is dependent of the country. The Color I will use is in a SQL table with a CountryID as key value.... Question A: How do I get the numbers of points in a serie ( not a major issue but my I miss a function as Chart1.Points.Count gives an odd result...) Question B: I use a DataSource to retrive the values to the bubbleChart ==> I have FieldMaps of Label, XValue, Value, Value Is there a possibility to send with extra information to the BubbleChart that I can use to set the color with (in my example I would like to have the countryID). Regards Magnus Link to comment Share on other sites More sharing options...
Software FX Posted February 14, 2007 Report Share Posted February 14, 2007 > Question A: How do I get the numbers of points in a series ( not a major > issue but my I miss a function as Chart1.Points.Count gives an odd > result...) int n = chart.Data.Points; > Question B: I use a DataSource to retrive the values to the bubbleChart > ==> I have FieldMaps of Label, XValue, Value, Value No. You will have to get these values somewhere else and use the ConditionalAttributeCallback event to decide on the color based on this external data. -- Francisco Padron www.chartfx.com Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.