Results 1 to 3 of 3

Thread: how to clear a chart

  1. #1
    Junior Member
    Join Date
    Mar 2011
    Posts
    4

    how to clear a chart

    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?

  2. #2
    Senior Member ed's Avatar
    Join Date
    Aug 2005
    Posts
    312
    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.


    The first 90% of the code accounts for the first 90% of the development time. The remaining 10% of the code accounts for the other 90% of the development time.

  3. #3
    Junior Member
    Join Date
    Mar 2011
    Posts
    4

    thanks

    Thanks ed; I'll look for that.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •