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

Programmatic Binding

1 Answer 67 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Jones
Top achievements
Rank 1
Jones asked on 13 Jul 2009, 10:24 AM
Hi,

My DataSet contains 4 columns namely col1, col2, col3, col4. (col3 and col4 are int)
I am assigning DataGroupColumn as col1 XAxis DataLabelsColumn as col2.
Now when I assign the dataset to Chart Datasource automatically col4 is taken as YAxis. How I can change it to col3? 

Regards,
Jones

1 Answer, 1 is accepted

Sort by
0
Giuseppe
Telerik team
answered on 15 Jul 2009, 10:42 AM
Hi Jones,

You can achieve the desired functionality like this:

RadChart1.DataSource = myDataset; 
RadChart1.DataManager.ValuesYColumns = new string[] { "col3" }; 
 
RadChart1.DataBind(); 


Hope this helps.


All the best,
Manuel
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Chart (Obsolete)
Asked by
Jones
Top achievements
Rank 1
Answers by
Giuseppe
Telerik team
Share this question
or