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

Trouble controlling item labels on Pie Chart

1 Answer 53 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.
M
Top achievements
Rank 1
M asked on 23 Nov 2010, 05:37 PM
I designed a pie chart and set item name and label properties so that text describing the 'piece of pie' appears, instead of numeric value. In preview mode, all works as expected. But, as a result of setting a DataSource in vb.net (chart.DataSource = array in NeedDataSource event) the item name and label properties seem to be reset. Have tried setting them in various events thereafter (subsequently in NeedDataSource and in ItemDataBound) but haven't found the way to override numeric value labels. What's the trick? (Have also tried setting AutoScale to false and every other hint I've read in forums.) How can I set item labels after setting datasource via an array? Thanks!

1 Answer, 1 is accepted

Sort by
0
Massimiliano Bassili
Top achievements
Rank 1
answered on 26 Nov 2010, 05:41 PM
Set the item name and labels with code in NeedDataSource as well. In fact if you prefer to bind the chart programmatically, you might build and customize the chart entirely with code, see this topic: http://www.telerik.com/help/reporting/buildingdatatbindlistcomplex.html

Cheers!
Tags
Chart (obsolete as of Q1 2013)
Asked by
M
Top achievements
Rank 1
Answers by
Massimiliano Bassili
Top achievements
Rank 1
Share this question
or