LineChartLayout class

Resolved layout values for Chart.Line rendering.

Populated from HostConfig chartsLayout.line via LineChartLayoutSection.toLayout or ChartsLayoutConfig.resolveLineLayout. Chart renderers consume these directly; field names match fl_chart layout options.

Constructors

LineChartLayout({required double height, required double emptyMinX, required double emptyMaxX, required double emptyMinY, required double emptyMaxY, required double degenerateRangeBump, required double zeroRangeFallback, required double yAxisPaddingFactor, required bool isCurved, required double barWidth, required bool isStrokeCapRound, required bool showDots, required bool showAreaBelow, required bool showTitles, required bool showRightTitles, required bool showTopTitles, required bool showGrid, required bool showBorder, required Color borderColor, required double borderWidth})
Resolved line chart layout for chart renderers.
const

Properties

barWidth double
Line stroke width (fl_chart barWidth on line charts).
final
borderColor Color
Plot border color when showBorder is true.
final
borderWidth double
Plot border stroke width when showBorder is true.
final
degenerateRangeBump double
Padding added when the computed Y range is zero (flat series).
final
emptyMaxX double
Placeholder maximum X when the series has no data.
final
emptyMaxY double
Placeholder maximum Y when the series has no data.
final
emptyMinX double
Placeholder minimum X when the series has no data.
final
emptyMinY double
Placeholder minimum Y when the series has no data.
final
hashCode int
The hash code for this object.
no setterinherited
height double
Chart area height in logical pixels.
final
isCurved bool
Whether line segments render as curves instead of straight segments.
final
isStrokeCapRound bool
Whether line caps render with rounded ends.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showAreaBelow bool
Whether the area below the line is filled.
final
showBorder bool
Whether a border is drawn around the plot area.
final
showDots bool
Whether data points render as visible dots.
final
showGrid bool
Whether grid lines are drawn behind the series.
final
showRightTitles bool
Whether right-side axis titles are shown.
final
showTitles bool
Master switch for axis title visibility.
final
showTopTitles bool
Whether top axis titles are shown.
final
yAxisPaddingFactor double
Multiplier applied to Y range for headroom above/below data.
final
zeroRangeFallback double
Fallback Y span when the computed range is zero.
final

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