Attached you find a small demo program showing the zoon in a LINE chart.
It has two operating modes.
1. Static: you can set the ZoomBeginIndex and the ZoomEndIndex with the cursor. In the main program not in the xChart library.
2. Dynamic: the chart is dynamically filled with data up to the given max number of points (MaxPoints) and then scrolls.
When it begins to scroll a zoom is set and shows the last NumberVisiblePoints.
When you click on Stop the program returns to static mode.
For this i had to modify the xChart library.
- Changed the getNbPoints property to return the total number of points.
- Add a ZoombarEnabled property, because in dynamic mode the zoom does not work correctly.
For the moment the xChart module is included in the project.
If all this is OK for you i will update the library.