I'm considering moving my charts to the (relatively) new ChartView. Is there an easy way to implement a bubble chart or do I have to use the old Charting control for that?
Edit: I don't necessarily need different bubble sizes.
2 Answers, 1 is accepted
0
Accepted
Petar Kirov
Telerik team
answered on 15 Oct 2012, 07:02 AM
Hi Jorn,
Even though the ChartView does not have built-in Bubble series, they could be implemented relatively easy by using ScatterPoint series with a custom PointTemplate.
If all the data points have same size, then all you need is this:
If you want you can bind the size of the bubble to a property of the underlying object. The only peculiarity in this case is that you need to define the max size of the ContentPresenter at design-time:
You need to define a ContentPresenter, because by default ScatterPoint series items are identical (so as the size of their ContentPresenters) and ContentPresenter is only measured by the first item. So if you have bubbles larger than your first, they will be clipped.
If you have any further questions feel free to ask.