ChartInteractionHelper class

Helper class for detecting chart interactions.

This class provides static methods to detect taps and hovers on various chart elements such as points, bars, segments, and shapes.

Constructors

ChartInteractionHelper()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

findBar(Offset tapPosition, List<ChartDataSet> dataSets, Size chartSize, double minX, double maxX, double minY, double maxY, double barWidth) ChartInteractionResult?
Find bar at tap location (optimized with early exit)
findFunnelSegment(Offset tapPosition, List<PieData> data, Size size, double animationProgress) ChartInteractionResult?
Find funnel segment at tap location
findNearestPoint(Offset tapPosition, List<ChartDataSet> dataSets, Size chartSize, double minX, double maxX, double minY, double maxY, double tapRadius) ChartInteractionResult?
Find nearest point to tap location (optimized with early exit and squared distance).
findPieSegment(Offset tapPosition, List<PieData> data, Size size, double centerSpaceRadius) ChartInteractionResult?
Find pie/donut chart segment at tap location.
findPyramidSegment(Offset tapPosition, List<PieData> data, Size size, double animationProgress) ChartInteractionResult?
Find pyramid segment at tap location Find pyramid chart segment at tap location.
findRadarPoint(Offset tapPosition, List<RadarDataSet> dataSets, Size size, double maxValue, double animationProgress) ChartInteractionResult?
Find radar point at tap location Find radar chart point at tap location.