LineChartData class Null safety

LineChart needs this class to render itself.

It holds data needed to draw a line chart, including bar lines, spots, colors, touches, ...

Inheritance
Mixed in types

Constructors

LineChartData({List<LineChartBarData>? lineBarsData, List<BetweenBarsData>? betweenBarsData, FlTitlesData? titlesData, ExtraLinesData? extraLinesData, LineTouchData? lineTouchData, List<ShowingTooltipIndicators>? showingTooltipIndicators, FlGridData? gridData, FlBorderData? borderData, RangeAnnotations? rangeAnnotations, double? minX, double? maxX, double? baselineX, double? minY, double? maxY, double? baselineY, FlClipData? clipData, Color? backgroundColor})
LineChart draws some lines in various shapes and overlaps them. lines are defined in lineBarsData, sometimes you need to fill space between two bars with a color or gradient, you can use betweenBarsData to achieve that.

Properties

backgroundColor Color
A background color which is drawn behind th chart.
read / write, inherited
baselineX double
read / write, inherited
baselineY double
read / write, inherited
betweenBarsData List<BetweenBarsData>
Fills area between two LineChartBarData with a color or gradient.
final
borderData FlBorderData
Holds data to drawing border around the chart.
read / write, inherited
clipData FlClipData
clip the chart to the border (prevent draw outside the border)
read / write, inherited
extraLinesData ExtraLinesData
LineChart draws some horizontal or vertical lines on above or below of everything
final
gridData FlGridData
final, inherited
hashCode int
The hash code for this object.
read-only, inherited
horizontalDiff double
Difference of maxX and minX
read-only, inherited
lineBarsData List<LineChartBarData>
LineChart draws some lines in various shapes and overlaps them.
final
lineTouchData LineTouchData
Handles touch behaviors and responses.
final
maxX double
read / write, inherited
maxY double
read / write, inherited
minX double
read / write, inherited
minY double
read / write, inherited
props List<Object?>
Used for equality check, see EquatableMixin.
read-only, override
rangeAnnotations RangeAnnotations
final, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
showingTooltipIndicators List<ShowingTooltipIndicators>
You can show some tooltipIndicators (a popup with an information) on top of each LineChartBarData.spots using showingTooltipIndicators, just put line indicator number and spots 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.
read-only, inherited
titlesData FlTitlesData
final, inherited
touchData FlTouchData<BaseTouchResponse>
Holds data needed to touch behavior and responses.
read / write, inherited
verticalDiff double
Difference of maxY and minY
read-only, inherited

Methods

copyWith({List<LineChartBarData>? lineBarsData, List<BetweenBarsData>? betweenBarsData, FlTitlesData? titlesData, RangeAnnotations? rangeAnnotations, ExtraLinesData? extraLinesData, LineTouchData? lineTouchData, List<ShowingTooltipIndicators>? showingTooltipIndicators, FlGridData? gridData, FlBorderData? borderData, double? minX, double? maxX, double? baselineX, double? minY, double? maxY, double? baselineY, FlClipData? clipData, Color? backgroundColor}) LineChartData
Copies current LineChartData to a new LineChartData, and replaces provided values.
lerp(BaseChartData a, BaseChartData b, double t) LineChartData
Lerps a BaseChartData based on t value, check Tween.lerp.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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