Pie chart binding

2 posts, 0 answers
  1. murat2912
    murat2912 avatar
    8 posts
    Member since:
    Mar 2007

    Posted 09 Jun 2010 Link to this post

    Hi

    How can i do that  http://i45.tinypic.com/2r3uu7c.png in my pie chart ?

    This is my code ;

    DataTable

     

    table = new DataTable();

     

    table.Columns.Add(

    "STATE", typeof(string));

     

    table.Columns.Add(

    "VALUE", typeof(int));

     


    table.Rows.Add(

    "AVAIL", 50);

     

    table.Rows.Add(

    "ACD", 10);

     

    table.Rows.Add(

    "AUX", 20);

     

    table.Rows.Add(

    "ACW", 30);

     

    table.Rows.Add(

    "RING", 24);

     

    table.Rows.Add(

    "OTHER", 47);

     

    radChart1.ChartTitle.TextBlock.Text =

    "Agent Status For " + this.Text;

     

     

    DataTable dt = table ;

     

     

     

    Telerik.Charting.

    ChartSeries series = new Telerik.Charting.ChartSeries();

     

    series.Type = Telerik.Charting.

    ChartSeriesType.Pie;

     

    series.Appearance.LegendDisplayMode = Telerik.Charting.

    ChartSeriesLegendDisplayMode.ItemLabels;

     

    series.DataYColumn =

    "VALUE";

     

     

    radChart1.Series.Clear();

    radChart1.Series.Add(series);

     

    radChart1.DataSource = dt;

    radChart1.DataBind();



    Thanks ...
  2. Dwight
    Admin
    Dwight avatar
    475 posts

    Posted 14 Jun 2010 Link to this post

    Hello murat,

    Unfortunately, the RadChart does not support that functionality. You can change the labels of the Pie in order to add the required information. That is the only solution as no additional elements can be added to the PlotArea.

    Sincerely yours,
    Joshua
    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.
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top