Get the data point collection based on region

29 Nov 20221 minute to read

CartesianSeries provides the following methods to get the visible range data points.

  • C#
  • List<object> dataPoints = Series.GetDataPoints(rectangle);
    
    or
    
    List<object> dataPoints = Series.GetDataPoints(startX, endX, startY, endY);

    NOTE

    You can get the visible plotting region of the series in the chart using SeriesClipRect or SeriesBounds property in run time.