main_class/src/chart/scatter_chart/scatter_chart_data library

Classes

ScatterChartData
ScatterChart needs this class to render itself.
ScatterChartDataTween
It lerps a ScatterChartData to another ScatterChartData (handles animation for updating values)
ScatterLabelSettings
Defines information about the labels in the ScatterChart
ScatterSpot
Defines information about a spot in the ScatterChart
ScatterTooltipItem
Holds data of showing each item in the tooltip popup.
ScatterTouchData
Holds data to handle touch events, and touch responses in the ScatterChart.
ScatterTouchedSpot
Holds the touched spot data
ScatterTouchResponse
Holds information about touch response in the ScatterChart.
ScatterTouchTooltipData
Holds representation data for showing tooltip popup on top of spots.

Functions

defaultScatterTooltipItem(ScatterSpot touchedSpot) ScatterTooltipItem?
Default implementation for ScatterTouchTooltipData.getTooltipItems.
getDefaultLabelFunction(int spotIndex, ScatterSpot spot) String
It gives you the default label of the spot.
getDefaultLabelTextStyleFunction(int spotIndex, ScatterSpot spot) TextStyle?
It gives you the default text style of the label for a spot.

Typedefs

GetLabelFunction = String Function(int spotIndex, ScatterSpot spot)
It gives you the index value as well as the spot and returns the label of the spot.
GetLabelTextStyleFunction = TextStyle? Function(int spotIndex, ScatterSpot spot)
It gives you the index value as well as the spot and gets the text style of the label.
GetScatterTooltipItems = ScatterTooltipItem? Function(ScatterSpot touchedSpot)
Provides a ScatterTooltipItem for showing content inside the ScatterTouchTooltipData.
ScatterTouchCallback = void Function(ScatterTouchResponse)
ScatterChart's touch callback.