ChartsLayoutConfig class
HostConfig chartsLayout section for chart element dimensions and chrome.
Attach via HostConfig.chartsLayout. Each subsection maps to a chart family;
use resolveLineLayout, resolveBarLayout, resolvePieLayout, and
resolveDonutLayout when rendering (falls back to defaults).
Constructors
- ChartsLayoutConfig({required LineChartLayoutSection line, required BarChartLayoutSection bar, required PieChartLayoutSection pie, required PieChartLayoutSection donut})
-
HostConfig overrides for all chart families; omit fields to keep defaults.
const
-
ChartsLayoutConfig.fromJson(Map<
String, dynamic> json) -
Parses
chartsLayoutfrom HostConfig JSON.factory
Properties
- bar → BarChartLayoutSection
-
Bar chart HostConfig subsection.
final
- donut → PieChartLayoutSection
-
Donut and gauge chart HostConfig subsection.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- line → LineChartLayoutSection
-
Line chart HostConfig subsection.
final
- pie → PieChartLayoutSection
-
Pie chart HostConfig subsection.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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
Static Methods
-
resolveBarLayout(
ChartsLayoutConfig? config) → BarChartLayout - Layout for bar chart types (vertical, horizontal, grouped, stacked).
-
resolveDonutLayout(
ChartsLayoutConfig? config) → DonutChartLayout -
Layout for
Chart.DonutandChart.Gauge. -
resolveLineLayout(
ChartsLayoutConfig? config) → LineChartLayout -
Layout for
Chart.Line. -
resolvePieLayout(
ChartsLayoutConfig? config) → PieChartLayout -
Layout for
Chart.Pie.
Constants
- defaults → const ChartsLayoutConfig
- Built-in defaults matching pre-config chart rendering behavior.