Hi Daniel,
The exact method depends on your GUI framework. For example, a web application written using PHP is completely different from a desktop application written using MFC/C++.
In general, you would need to put a scrollbar or some sort of controls (such as up/down buttons) in your GUI to allow the user to scroll. These controls (scrollbars, push buttons, etc) are not related to ChartDirector, but is provided by your GUI framework.
From the controls, your code would need to keep track of which bars are visible. For example, if the control is a scrollbar, your code would need to determine which bars are visible based on the position of the scrollbar. Then your code can redraw the chart (in the scrollbar event handler) by passing on the data that are visible to ChartDirector.
Hope this can help.
Regards
Peter Kwan |