getNearestDatumDetailPerSeries abstract method
Gets a list of the data from each series that is closest to a given point.
chartPoint
represents a point in the chart, such as a point that was
clicked/tapped on by a user.
selectOverlappingPoints
specifies whether to include all points that
overlap the tapped position in the result. If specified, the method will
return either the closest point or all the overlapping points with the
tapped position.
byDomain
specifies whether the nearest data should be defined by domain
distance, or relative Cartesian distance.
boundsOverride
optionally specifies a bounding box for the selection
event. If specified, then no data should be returned if chartPoint
lies
outside the box. If not specified, then each series renderer on the chart
will use its own component bounds for filtering out selection events
(usually the chart draw area).
Implementation
List<DatumDetails<D>> getNearestDatumDetailPerSeries(
Point<double> chartPoint,
bool byDomain,
Rectangle<int>? boundsOverride, {
bool selectOverlappingPoints = false,
bool selectExactEventLocation = false,
});