|
Hide Data which is out of range |
Posted by Medic89 on Dec-04-2022 19:27 |
|
Hello Peter,
i have a XYChart, which can be scrolled to the left and right. However, when I scroll to the right , all Data which is behind the new startpoint, is displayed outside of the plotting area. Is there any way to hide that data?
|
Re: Hide Data which is out of range |
Posted by Peter Kwan on Dec-04-2022 21:07 |
|
Hi Medic89,
In our zoomable and scrollable sample code, we always use XYChart.setClipping to hide the points outside the plotarea:
c.setClipping();
In most of our zoomable and scrollable examples, we will also filter out points that are outside and have no effect inside the plot area. For example, see the viewPortTimeStamps array in the following sample code:
https://www.advsofteng.com/doc/cdcpp.htm#simplezoomscroll.htm
However, if there are only a few data points (less than 1000 points), then we do not bother to filter them out, and the setClipping will take care of them.
Best Regards
Peter Kwan |
Re: Hide Data which is out of range |
Posted by Medic89 on Dec-06-2022 02:04 |
|
Hello Peter,
SetClipping() was exactly what I was looking for, thanks a lot!:)
The only down side is, that data symbol, which are located directly on the border are being cut "in half", is there any way to let display those symbols completely? |
|