GarnishChartStyle class
Defines the visual properties for chart components (Graph, PieChart).
Use GarnishChartStyle to customize colors, strokes, and decoration for charts beyond the default theme-based styling.
- Annotations
Constructors
- GarnishChartStyle({Color? primaryColor, Color? secondaryColor, Color? gridColor, Color? textColor, Color? backgroundColor, Color? borderColor, BorderRadius? borderRadius, double? strokeWidth, double? gridStrokeWidth})
-
Creates a chart style with the specified properties.
const
Properties
- backgroundColor → Color?
-
Background color of the chart area.
final
- borderColor → Color?
-
Border color around the chart.
final
- borderRadius → BorderRadius?
-
Border radius of the chart container.
final
- gridColor → Color?
-
Color for grid lines and axes.
final
- gridStrokeWidth → double?
-
Stroke width for grid lines.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- primaryColor → Color?
-
Primary color for data series (lines, bars, first slice).
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- secondaryColor → Color?
-
Secondary color for additional series or accents.
final
- strokeWidth → double?
-
Stroke width for lines and bar outlines.
final
- textColor → Color?
-
Color for labels and axis text.
final
Methods
-
copyWith(
{Color? primaryColor, Color? secondaryColor, Color? gridColor, Color? textColor, Color? backgroundColor, Color? borderColor, BorderRadius? borderRadius, double? strokeWidth, double? gridStrokeWidth}) → GarnishChartStyle - Creates a copy of this style with the given properties replaced.
-
merge(
GarnishChartStyle? other) → GarnishChartStyle -
Merges this style with another, preferring values from
other. -
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