ASE Home Page Products Download Purchase Support About ASE
ChartDirector Support
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  Hide Data which is out of range
Posted by Medic89 on Dec-04-2022 19:27
Attachments:
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?
Screenshot 2022-12-04 122734.png

  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?