mr-marky-mark Posted August 21, 2008 Report Share Posted August 21, 2008 Hi, I have a situation where I bind data to chart, rebind different data to it, then rebind the original (after certain events). When rebinding the original data again, the Y Axis isn't the same as what it was when binding originally. In between this rebinding I'm calling: Chart.Data.Clear();Chart.Panes.Clear();Chart.Points.Clear();Chart.DataSourceSettings.Fields.Clear(); And I'm calling Chart.AxisY.ResetScale() and have AutoScale to true. What else should I call? Chart.Reset() works but it clears all of the formatting properties set earlier also. I've also tried Chart.AxesY.Clear(). Any ideas? Mark Quote Link to comment Share on other sites More sharing options...
mr-marky-mark Posted August 21, 2008 Author Report Share Posted August 21, 2008 Chart.Series.Clear(); Is what I was looking for... 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.