View Full Version : how to clear a chart

04-20-2011, 12:01 PM
I've searched the documentation and have not been able to find any explanation of how to clear a chart. In both the candlestick and time series heatmap charts, new information draws on top of the previous display. How can I clear the charts so that they display only the new information?

04-25-2011, 11:50 AM
You'll need to use the "remove()" method on the object you'd like to overwrite or replace. If you don't do this, things will get messily overdrawn.

Almost all of the demonstrations in the gallery do this somewhere, often within a clearChart() method to remove everything on a major update.

05-06-2011, 07:59 AM
Thanks ed; I'll look for that.