Jump to content
Software FX Community

Data from previous chart shows up in new chart


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


This topic is now archived and is closed to further replies.

  • Create New...