Trouble controlling item labels on Pie Chart

Thread is closed for posting
2 posts, 0 answers
  1. M
    M avatar
    1 posts
    Member since:
    Nov 2010

    Posted 23 Nov 2010 Link to this post

    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 (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!
  2. Massimiliano Bassili
    Massimiliano Bassili avatar
    323 posts
    Member since:
    May 2006

    Posted 26 Nov 2010 Link to this post

    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:

Back to Top