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

Pie chart Problem

1 Answer 23 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
waqar
Top achievements
Rank 1
waqar asked on 07 Sep 2010, 07:14 AM

I cant show my Pie chart with 3 inputs,,I am a new one ,Help to show 3 inputs in pie chart ,here is my code



        <telerik:RadChart ID="RadChart4" runat="server" DataSourceID="SqlDataSource3" DefaultType="Pie"

            Width="321px" Style="font-weight: 700" >

            <Series>

                <telerik:ChartSeries DataYColumn="Amount" Name="Amount" Type="Pie">

                </telerik:ChartSeries>

                <telerik:ChartSeries DataYColumn2="Amount1" Name="Series 2" Type="Pie">

                </telerik:ChartSeries>

                <telerik:ChartSeries Type="Pie" DataYColumn3="Amoun2" Name="Series 3">

                </telerik:ChartSeries>

            </Series>

        </telerik:RadChart>

        <p>

            .</p>

        <asp:SqlDataSource ID="SqlDataSource3" runat="server" ConnectionString="<%$ ConnectionStrings:TestWaqarConnectionString %>"

            SelectCommand="SELECT [Amount], [Amount1], [Amount2] FROM [Calendar] WHERE ([Year] = @Year)">

            <SelectParameters>

                <asp:Parameter DefaultValue="2000" Name="Year" Type="String" />

            </SelectParameters>

        </asp:SqlDataSource>

1 Answer, 1 is accepted

Sort by
0
Ves
Telerik team
answered on 09 Sep 2010, 08:33 AM
Hi waqar,

For pie series DataYColumn2 and DataYColumn3 properties are not meaningful as they provide the name of the column in the underlying data, which will supply the values for YValue2 and YValue3, which are not used in pie charts. The pie slices are defined by the YValue property. You can find more details about databinding RadChart here.

Sincerely,
Ves
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Chart (Obsolete)
Asked by
waqar
Top achievements
Rank 1
Answers by
Ves
Telerik team
Share this question
or