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

Pie chart binding

1 Answer 93 Views
Chart (obsolete as of Q1 2013)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
murat2912
Top achievements
Rank 1
murat2912 asked on 09 Jun 2010, 04:26 PM
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 ...

1 Answer, 1 is accepted

Sort by
0
Dwight
Telerik team
answered on 14 Jun 2010, 04:41 PM
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.
Tags
Chart (obsolete as of Q1 2013)
Asked by
murat2912
Top achievements
Rank 1
Answers by
Dwight
Telerik team
Share this question
or