This is a migrated thread and some comments may be shown as answers.

Bubble chart problems

1 Answer 70 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
August
Top achievements
Rank 1
August asked on 09 Dec 2011, 05:41 PM
Im trying to make a very simple bubble chart. The input data i have is an array of bubbles. The values of each bubble are; x, y and radius.
Trying to enter these values into a bubble chart yields essentially no sane results at all. The Y axis has a height, but the X axis consists of basically 1 vertical line where a bunch of widthless bubbles are rendered on top of each other. Altering the X values makes no difference at all.
I defined series items as follows:

ChartSeriesItem seriesItem = new ChartSeriesItem( x, y, radius, radius );
series.AddItem( seriesItem );
// etc...
(I also tried a bunch of other combinations that made different degrees of sense)

If i just want to plot a bunch of bubbles with the above input, how should I input the data into the radchart? What properties do i need to change to make it understand what I want to do? 

1 Answer, 1 is accepted

Sort by
0
Peshito
Telerik team
answered on 14 Dec 2011, 09:06 AM
Hello August,

The size of the bubble is controlled through XValue2 for bubble size on X axis and respectively - YValue2 for bubble size on the Y axis. You should specify these properties of the Bubble to position it on the PlotArea and the Bubble size is proportionate to these values.

Also note that the size of the bubble depends on the X range and Y range, thus you can use custom range to get proper view and make them circular.

I have attached a sample application demonstrating how to properly create bubble chart.

Regards,
Peshito
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Tags
Chart (Obsolete)
Asked by
August
Top achievements
Rank 1
Answers by
Peshito
Telerik team
Share this question
or