BarChartLayout class
Resolved layout values for bar chart types.
From HostConfig chartsLayout.bar via BarChartLayoutSection.toLayout or
ChartsLayoutConfig.resolveBarLayout.
Constructors
- BarChartLayout({required double height, required double emptyMaxY, required double maxYPaddingFactor, required double barWidth, required double barsSpace, required double barBorderRadius, required double stackedBarBorderRadius, required BarChartAlignmentToken alignment, required double categoryAxisReservedSize, required double categoryLabelFontSize, required bool showCategoryTitles})
-
Resolved bar chart layout for vertical, horizontal, grouped, and stacked charts.
const
Properties
- alignment → BarChartAlignmentToken
-
How bar groups align within the plot width.
final
- barBorderRadius → double
-
Corner radius for simple and grouped bars.
final
- barsSpace → double
-
Gap between rods within a bar group.
final
- barWidth → double
-
Width of each bar rod.
final
- categoryAxisReservedSize → double
-
Vertical space reserved for category axis labels.
final
- categoryLabelFontSize → double
-
Font size for category axis labels.
final
- emptyMaxY → double
-
Placeholder maximum 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
- maxYPaddingFactor → double
-
Multiplier on max Y for value-axis headroom.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showCategoryTitles → bool
-
Whether category axis titles are shown.
final
- stackedBarBorderRadius → double
-
Corner radius for the outer rod of stacked bars.
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