Bubble Chart - Bubble always circle

Thread is closed for posting
2 posts, 0 answers
  1. Chris
    Chris avatar
    11 posts
    Member since:
    Dec 2004

    Posted 18 Mar 2009 Link to this post

    For the bubbles i has to define the horizontal and vertical size with the two values XValue2 and YValue2. Depending of the x- and y-axis and the values i get ellipses or so.

    I would like generate always circles with only one value for the diameter and independent of the dimensions of the both axis.

    How can i realize this in vb.net?

    Regards and thanks
    Chris
  2. Dessy
    Admin
    Dessy avatar
    73 posts

    Posted 20 Mar 2009 Link to this post

    Hi Chris,

    You can control the bubbles size by setting value to the BubbleSize property (e.g. chartSeries.Appearance.BubbleSize = 26)
    Additionally you could determine the position of the circle by changing  XValue and YValue
    Here is an example in VB:

     Dim chartSeries1 As New ChartSeries("My Series")  
            chartSeries1.Type = ChartSeriesType.Bubble  
            chartSeries1.Appearance.BubbleSize = 26  
            RadChart1.Series.Add(chartSeries1)  
            Dim item1 As New ChartSeriesItem(20)  
            Dim item2 As New ChartSeriesItem(60)  
            Dim item3 As New ChartSeriesItem(10)  
            item1.XValue = 20  
            chartSeries1.AddItem(item1)  
            item2.XValue = 60  
            chartSeries1.AddItem(item2)  
            item3.XValue = 40  
            chartSeries1.AddItem(item3)  
     
            RadChart1.PlotArea.YAxis.AxisMode = ChartYAxisMode.Extended 

    Hope this helps.


    Sincerely yours,
    Dessy
    the Telerik team

    Check out Telerik Trainer , the state of the art learning tool for Telerik products.
Back to Top