Hi Shiwan,
You can always change the viewport left side so that the right side is always at the latest data. The exact code depends on your programming language and whether you are writing a web or desktop application. As an example, in C# for a Windows Forms application, you can add the following code in the ViewPortChanged event handler:
// The right side will always be 1, so the left side must be 1 - width.
winChartViewer1.ViewPortLeft = 1 - winChartViewer1.ViewPortWidth;
If you need further help, would you mind to inform me of your programming language and whether it is a web or desktop application?
Regards
Peter Kwan |