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

Change corner in Pie Chart ???

3 Answers 39 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Phong
Top achievements
Rank 1
Phong asked on 01 Sep 2008, 03:53 PM
Hi all ,

I have a table :

       Column 1             Column 2             Column 3
          A                              3                        1

I bind this table to RadChart and ChartType is Pie Chart .

How do we draw begin at 270 degree ? Please help me for this .

Thanks ,
Phong

3 Answers, 1 is accepted

Sort by
0
Ves
Telerik team
answered on 02 Sep 2008, 07:06 AM
Hello Phong,

You can use the StartAngle property, here is an example:

RadChart1.Series[0].Appearance.StartAngle = 270;

Hope this helps.

Greetings,
Ves
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Phong
Top achievements
Rank 1
answered on 04 Sep 2008, 01:25 AM
Thanks Ves ,

I want to draw that table on only 1 Pie Chart.

Please help me !

Thanks ,
Phong
0
Giuseppe
Telerik team
answered on 04 Sep 2008, 07:18 AM
Hi Phong,

Unfortunately RadChart does not provide support for binding the separate column values into a single pie chart. You will need to combine the data into a single column and then pass the data to the control:

protected void Page_Load(object sender, EventArgs e) 
    DataTable dt = new DataTable(); 
    dt.Columns.Add("Data", typeof(int)); 
 
    DataRow dr = dt.NewRow(); 
    dr[0] = 1; 
    dt.Rows.Add(dr); 
 
    DataRow dr2 = dt.NewRow(); 
    dr2[0] = 2; 
    dt.Rows.Add(dr2); 
 
    RadChart1.DefaultType = ChartSeriesType.Pie; 
    RadChart1.DataSource = dt
    RadChart1.DataBind(); 



Greetings,
Manuel
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Chart (Obsolete)
Asked by
Phong
Top achievements
Rank 1
Answers by
Ves
Telerik team
Phong
Top achievements
Rank 1
Giuseppe
Telerik team
Share this question
or