Bubble chart problems

Thread is closed for posting
2 posts, 0 answers
  1. August
    August avatar
    1 posts
    Member since:
    Dec 2011

    Posted 09 Dec 2011 Link to this post

    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? 
  2. Peshito
    Admin
    Peshito avatar
    497 posts

    Posted 14 Dec 2011 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top