This question is locked. New answers and comments are not allowed.
Hi, I am trying to create a bubble chart where the height and width of the ellipse is bound to my data. The end result I want will look something like the example for the asp control : http://demos.mcmscontrols.com/aspnet/Chart/Examples/ChartTypes/Bubble/DefaultVB.aspx
I am binding the collection of collections (more than one series) to the ItemsSource property on the chart.
I would like to map the Xvalue2 and Yvalue2 properties in the same way I am mapping the XValue and YValue:
I have tried changing the template and binding the ellipse properties myself, but ran into issues with placement of the ellipse (could not set Canvas.Top easily so that the ellipse was centered on x,y, see: http://www.telerik.com/community/forums/silverlight/chart/stly-for-scatter-chart.aspx ). I also looked at this forum post: http://www.telerik.com/community/forums/silverlight/chart/change-properties-of-a-point-in-chart.aspx but that required the code behind to loop through each point and resize it to match the chart scale.
Can you please advise the best way to do this?
I am binding the collection of collections (more than one series) to the ItemsSource property on the chart.
I would like to map the Xvalue2 and Yvalue2 properties in the same way I am mapping the XValue and YValue:
SeriesMapping seriesMapping =
new
SeriesMapping();
seriesMapping.CollectionIndex = collectionIndex;
seriesMapping.ItemMappings.Add(
new
ItemMapping(
"X"
, DataPointMember.XValue));
seriesMapping.ItemMappings.Add(
new
ItemMapping(
"Y"
, DataPointMember.YValue));
// Would like to do the following but not in enum:
seriesMapping.ItemMappings.Add(
new
ItemMapping(
"X2"
, DataPointMember.XValue2));
seriesMapping.ItemMappings.Add(
new
ItemMapping(
"Y2"
, DataPointMember.YValue2));
Can you please advise the best way to do this?