Skip to main content

ClipAreas

Like DataBreaking, ClipAreas can be used to prevent part of the series data from rendering. They can be used to filter out bad data ranges, out-of-range data by Y value, etc.

ViewXY's series have SetClipAreas method for setting or updating the clipping areas. It accepts an array of ClipArea structures. The ClipAreas array can be changed frequently, and performance stays good up to thousands of ClipAreas.

The ClipArea applies for the series that it has been assigned to. Note that this is a rendering-stage clipping and mouse operations will respond to series when placed over the ClipArea if there's actual data under it.

ExampleClipAreas ClipAreas defined for 3 series. For PointLineSeries, AreaSeries, and IntensityGridSeries. On the left, the ClipAreas are not used. On the right, ClipAreas are enabled. For yellow PointLineSeries, X dimensional clipping areas have been defined to mask off low-amplitude data. For red AreaSeries, Y-dimensional ClipArea cuts too high-amplitude data from the top. For IntensityGridSeries, X- and Y-dimensional ClipAreas are used to prevent the series from rendering in specific areas.

info

To see feature demonstration as example, check Clip areas from our Demo.