BarChartAxisStyle class

Contains various customization options for the axis of the chart.

Constructors

BarChartAxisStyle({double stroke = 1, Color color = const Color(0x33FFFFFF), TextStyle yAxisLabelStyle = defaultYAxisLabelStyle, TextStyle xAxisLabelStyle = defaultXAxisLabelStyle, TextStyle xAxisSelectedLabelStyle = defaultXAxisSelectedLabelStyle, double xAxisLabelTopMargin = 6, EdgeInsets xAxisLabelPadding = defaultXAxisLabelPadding, Color xAxisSelectedLabelBackgroundColor = const Color(0xFFFFFFFF), BorderRadius xAxisSelectedLabelBorderRadius = defaultXAxisSelectedLabelBorderRadius})
Constructs an instance of BarChartAxisStyle.
const

Properties

color Color
Color of the X axis line.
final
hashCode int
The hash code for this object.
no setteroverride
labelHeight double
Gets height of the label.
no setter
paint Paint
Gets a Paint for the axis drawing.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stroke double
Stroke of the X axis line.
final
xAxisLabelPadding EdgeInsets
Padding of the X axis label.
final
xAxisLabelStyle TextStyle
X axis label style.
final
xAxisLabelTopMargin double
Top margin of the X axis label.
final
xAxisSelectedLabelBackgroundColor Color
Background color of the selected X axis label.
final
xAxisSelectedLabelBorderRadius BorderRadius
Border radius of the selected X axis label.
final
xAxisSelectedLabelStyle TextStyle
X axis selected label style.
final
yAxisLabelStyle TextStyle
Y axis label style.
final

Methods

copyWith({double? stroke, Color? color, TextStyle? yAxisLabelStyle, TextStyle? xAxisLabelStyle, TextStyle? xAxisSelectedLabelStyle, double? xAxisLabelTopMargin, EdgeInsets? xAxisLabelPadding, Color? xAxisSelectedLabelBackgroundColor, BorderRadius? xAxisSelectedLabelBorderRadius}) BarChartAxisStyle
Creates a copy of the current object with new values specified in arguments.
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.
override