models/chart_interaction
library
Typedefs
-
BarCallback
= void Function(ChartDataPoint point, int datasetIndex, int barIndex, Offset position)
-
Callback for bar chart interactions
position is the global tap position for showing context menus
-
BarHoverCallback
= void Function(ChartDataPoint? point, int? datasetIndex, int? barIndex)
-
Callback for mouse hover events on bars
Called when mouse enters a bar area
-
ChartPointCallback
= void Function(ChartDataPoint point, int datasetIndex, int pointIndex, Offset position)
-
Callback for chart point interactions
position is the global tap position for showing context menus
-
ChartPointHoverCallback
= void Function(ChartDataPoint? point, int? datasetIndex, int? pointIndex)
-
Callback for mouse hover events on chart points
Called when mouse enters a point area
-
PieSegmentCallback
= void Function(PieData segment, int segmentIndex, Offset position)
-
Callback for pie chart segment interactions
position is the global tap position for showing context menus
-
PieSegmentHoverCallback
= void Function(PieData? segment, int? segmentIndex)
-
Callback for mouse hover events on pie segments
Called when mouse enters a segment area