Hi Robert,
Unluckily, whenever you updated the chart, the dynamic layer will be erased with the old chart. That's why in our own sample code, when the viewport changed, the chart is updated and then the dynamic layer is redrawn. Because we already have the subroutine that draws the dynamic layer in the first place, so it is easy to redraw the dynamic layer (just call the same subroutine). You may refer to the "Zooming and Scrolling with Track Line" sample code (the track line is drawn in a dynamic layer).
Best Regards
Peter Kwan |