Dundas Chart for SharePoint Send comments on this topic.
Finding Data Points
See Also

Glossary Item Box

Overview

Each series has a collection of data points, and each data point has an X value, and one or more Y values. It is these values that are examined when a search operation occurs, and data points can be located within a series based on a maximum, minimum, or specified value. This topic discusses how to find data points that are present within a series.

 

Finding data points with specific values is useful when you want to :

Finding Data Points

The Points collection of the Series class exposes several methods for finding points:

 

The following are a list of points to note:

Working with Point Finding Methods

By default, all of the point finding methods will examine the first Y value ("Y"). This behavior can be changed by providing the name of the value to look at as a parameter. Possible values are: "X", "Y" (first Y value, the default), "Y2", "Y3", etc.

Multiple Points with the Same Value

It is possible that there are multiple points that match the search criteria. However, by default the FindXXX methods will only return the first point in the DataPointCollection that matches the criteria.

To find all points that match a search criteria provide the starting point index of the search using the StartFromIndex parameter. Call the method in a loop and increment the index with each successive method call. When the function returns it will have an index of the next located point, or -1 if nothing was found. Also, if a point does not match the search criteria a value of null will be returned.

See Also