Get the data point collection based on region
3 Sep 20201 minute to read
CartesianSeries provides the following methods to get a collection of data under a particular region.
GetDataPoints(Rectangle rect)- Gets the collection of data that fall inside the given rectangle region.
GetDataPoints(double startX, double endX, double startY, double endY)- Gets the collection of data from the given ChartAxis visible range.
List<object> dataPoints = Series.GetDataPoints(rectangle); or List<object> dataPoints = Series.GetDataPoints(startX, endX, startY, endY);
You can get the visible plotting region of the series in the chart using
SeriesBoundsproperty in run time.