Jump to content
Software FX Community

Rebinding data to same chart, Y Axis not reverting


mr-marky-mark
 Share

Recommended Posts

 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

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...