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

Bubble chart

1 Answer 50 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Dai Thanh
Top achievements
Rank 1
Dai Thanh asked on 17 Apr 2012, 03:31 AM
Hi,

i have problem when i try to use bubble chart type
my datatable


Title               Complexity             Stategic value            Cost
item 1            25                                 5                          $10,000
item 2            14                                 2                          $2,000
item 2            1                                   2                          $25,000

aspx.cs

<telerik:RadChart ID="RadChart1" SkinsOverrideStyles="true" runat="server"   >
                        <PlotArea>
                        <XAxis AutoScale="False" MaxValue="20" MinValue="0" Step="5">
                        </XAxis>
                        <YAxis AutoScale="False" MaxValue="40" MinValue="0" Step="5">
                        </YAxis>
                        <YAxis2 AutoScale="true"  ></YAxis2>
                        </PlotArea>

                        <Series  >
                               <telerik:ChartSeries Name="Series 1" Type="Bubble"    >
                                <Appearance LegendDisplayMode="ItemLabels" >
                                    <FillStyle MainColor="Blue">
                                    </FillStyle>
                                </Appearance>
                                <Items>
                                     <telerik:ChartSeriesItem XValue="5"  YValue="25"  YValue2="10000"  Name="Item 1">
                                    </telerik:ChartSeriesItem>
                                    <telerik:ChartSeriesItem XValue="2"  YValue="14"  YValue2="2000"  Name="Item 2">
                                    </telerik:ChartSeriesItem>
                                    <telerik:ChartSeriesItem XValue="2"   YValue="1"  YValue2="25000"   Name="Item 3">
                                    </telerik:ChartSeriesItem>
                                 
                                </Items>
                            </telerik:ChartSeries>
                        </Series>
                    </telerik:RadChart>

when i run it, i can see buble chart image. how to fix it

1 Answer, 1 is accepted

Sort by
0
Petar Marchev
Telerik team
answered on 19 Apr 2012, 04:41 PM
Hello Dai,

First let me direct you to one of our online demos: Point, Gantt, Bubble Chart (select "Bubble" from the drop down list). This will give you a notion of how the RadChart in Asp.Net Ajax draws a bubble chart. In short - the YValue is the center of the ellipse and the YValue2 is the ellipse's height.

If you comment out the plot area from the code that you have provided - you will start to see a more meaningful output.

However, I think that this might not be what you want exactly and this is why I have attached a simple app to get you started with one of the ways to create a bubble chart. I have also attached a snapshot of the output that I get when I run this code.

Hope this is of help. 

Kind regards,
Petar Marchev
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
Dai Thanh
Top achievements
Rank 1
Answers by
Petar Marchev
Telerik team
Share this question
or