ScatterChartData class
ScatterChart needs this class to render itself.
It holds data needed to draw a scatter chart, including background color, scatter spots, ...
- Inheritance
-
- Object
- BaseChartData
- AxisChartData
- ScatterChartData
Constructors
-
ScatterChartData({List<
ScatterSpot> ? scatterSpots, FlTitlesData? titlesData, ScatterTouchData? scatterTouchData, List<int> ? showingTooltipIndicators, FlGridData? gridData, FlBorderData? borderData, double? minX, double? maxX, double? baselineX, double? minY, double? maxY, double? baselineY, FlClipData? clipData, Color? backgroundColor, ScatterLabelSettings? scatterLabelSettings}) -
ScatterChart draws some points in a square space,
points are defined by
scatterSpots
,
Properties
- backgroundColor ↔ Color
-
A background color which is drawn behind the chart.
getter/setter pairinherited
- baselineX ↔ double
-
getter/setter pairinherited
- baselineY ↔ double
-
getter/setter pairinherited
- borderData ↔ FlBorderData
-
Holds data to drawing border around the chart.
getter/setter pairinherited
- clipData ↔ FlClipData
-
clip the chart to the border (prevent draw outside the border)
getter/setter pairinherited
- extraLinesData → ExtraLinesData
-
Extra horizontal or vertical lines to draw on the chart.
finalinherited
- gridData → FlGridData
-
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- horizontalDiff → double
-
Difference of maxX and minX
no setterinherited
- maxX ↔ double
-
getter/setter pairinherited
- maxY ↔ double
-
getter/setter pairinherited
- minX ↔ double
-
getter/setter pairinherited
- minY ↔ double
-
getter/setter pairinherited
-
props
→ List<
Object?> -
Used for equality check, see
EquatableMixin
.no setteroverride - rangeAnnotations → RangeAnnotations
-
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scatterLabelSettings → ScatterLabelSettings
-
final
-
scatterSpots
→ List<
ScatterSpot> -
final
- scatterTouchData → ScatterTouchData
-
final
-
showingTooltipIndicators
→ List<
int> -
you can show some tooltipIndicators (a popup with an information)
on top of each ScatterSpot using showingTooltipIndicators,
just put indices you want to show it on top of them.
final
- stringify → bool?
-
If set to
true
, the toString method will be overridden to output this instance's props.no setterinherited - titlesData → FlTitlesData
-
finalinherited
-
touchData
↔ FlTouchData<
BaseTouchResponse> -
Holds data needed to touch behavior and responses.
getter/setter pairinherited
- verticalDiff → double
-
Difference of maxY and minY
no setterinherited
Methods
-
copyWith(
{List< ScatterSpot> ? scatterSpots, FlTitlesData? titlesData, ScatterTouchData? scatterTouchData, List<int> ? showingTooltipIndicators, FlGridData? gridData, FlBorderData? borderData, double? minX, double? maxX, double? baselineX, double? minY, double? maxY, double? baselineY, FlClipData? clipData, Color? backgroundColor, ScatterLabelSettings? scatterLabelSettings}) → ScatterChartData - Copies current ScatterChartData to a new ScatterChartData, and replaces provided values.
-
lerp(
BaseChartData a, BaseChartData b, double t) → ScatterChartData -
Lerps a ScatterChartData based on
t
value, check Tween.lerp.override -
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