LineChartLayoutSection class

HostConfig chartsLayout.line section.

Override fields in host JSON or build in code, then call toLayout at render time (or use ChartsLayoutConfig.resolveLineLayout).

Constructors

LineChartLayoutSection({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})
HostConfig overrides for line chart layout.
const
LineChartLayoutSection.fromJson(Map<String, dynamic> json, {LineChartLayoutSection? defaults})
Parses chartsLayout.line from HostConfig JSON.
factory

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
toLayout() LineChartLayout
Resolved values for chart widgets at render time.
toString() String
A string representation of this object.
inherited

Operators

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