Jump to content
Software FX Community

Data from previous chart shows up in new chart


scottvv
 Share

Recommended Posts

I have a chart control on a web page.  The user can select what data to chart.  In every case, there is only one series in the chart.  The first time around, everything is as expected.  However, when user selects a different set of data to chart, the chart comes up with the legend box showing two items, each with the same name of series1, but a different color.  If the user selects a yet a different set of data to chart, now there are 3 items in the legend box, and so on.  I have tried chart.data.clear() which does not help.  It seems that somehow the chart is not getting cleared each time a new chart is made.  Any help?

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...