rohan Posted May 11, 2007 Report Share Posted May 11, 2007 hi, I'm using doughnut chart. I dynamically add values and shows chart. Problem is when i want to create new chart with different values it does not changes the values which were there before instead it appends the newer values. I tried cleardata function but it either shows null exception or it doesnot do anything with differnet flags. Can any body suggest me how to clear the data and replace it with new one. (Everytime no of values may change) Quote Link to comment Share on other sites More sharing options...
Frank Posted May 11, 2007 Report Share Posted May 11, 2007 The data is never appended. However, unless you clear thre data, any data you set will replace what's already there. To clear the data do: chart.Data.Clear() Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.