Can we generate a bubble chart with bubbles colored in a pie chart fashion.
http://samples.infragistics.com/sldv/RunSamples.aspx?cn=data-chart#/data-chart/bubble-brush-scale
Thanks for the information Graham but this still does not answer my question.
I am not looking for different solid coloured bubbles.
I am looking for bubble chart with a bubble having multiple colours. e.g. 1/4th bubble in red colour, 1/4th bubble in green colour and the remaining part of that bubble in blue colour.
Oh, you mean divided like a pie chart! That would certainly look pretty interesting. Technically you could try to do this by creating a custom MarkerTemplate for the bubble series that contained a XamPieChart. It could bind against some data on the original item, which you can access via the Item property from the template. However, if you have a lot of bubbles, you might need a lighter weight pie chart in order to avoid any performance degradation. I'm uncertain if the performance will be satisfactory if you ended up rendering 300 pie charts in the chart, for example.
I may see if I can give you some sort of sample.
-Graham
Hello,
I can suggest you handle the XamPieChart’s PreviewMouseLeftButtonDown event and add the following code in its handler:
MessageBox.Show((((e.OriginalSource as Path).Parent as Slice).DataContext as BreakDownItem).Label.ToString());
Hope this helps you.
Hi
How can i get the Label of the Bubble(PieChart),when i clicked on it.
Thanks
Hi,
Sorry, this slipped through the cracks. There is no built in feature. You can customize the marker templates, or you can float controls over the chart. Customizing the marker templates is probably the easier solution.
Hello Graham,
Is there any default feature in bubble series to display some text? Customizing the bubble is an option and the way you explained above, i can use Pie chart and give some label and displaying that text on bubble can also be done. The problem in the second approach is just to display text on bubble i have to use pie chart on bubble series so this can be performance hit. Can you please let me know some better approach to suit my requirement?
Thanks!
I am trying to achieve exactly what you have described here, a Bubble chart with piechart-like datapoints but all I have is the WPF Toolkit. Can this be done with the charting controls on the toolkit? if possible please help me with the code as i have already tried, to no avail.