PDA

View Full Version : how to clear a chart



rwbta
04-20-2011, 01: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?

ed
04-25-2011, 12:50 PM
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.

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