BarChartSettings class

Set of settings of the BarChart.

Constructors

BarChartSettings({int yAxisDivisions = 2, int? xAxisLabelQuantity, AxisDivisionEdges axisDivisionEdges = AxisDivisionEdges.none, bool showAxisX = true, bool showAxisXLabels = true, bool showAxisXSelectedLabelIfConcealed = false, bool showAxisYLabels = true, YAxisLayout yAxisLayout = YAxisLayout.overlay, double yAxisLabelSpacing = 0, double barSpacing = 0, double itemSpacing = 12, InteractionType interaction = InteractionType.selection, Duration duration = const Duration(milliseconds: 400), BarAlignment alignment = BarAlignment.end, bool reverse = false, BarFit fit = BarFit.none})
Constructs an instance of BarChartSettings.
const
BarChartSettings.gridless({int? xAxisLabelQuantity, bool showAxisX = true, bool showAxisXLabels = true, bool showAxisXSelectedLabelIfConcealed = false, bool showAxisYLabels = true, YAxisLayout yAxisLayout = YAxisLayout.overlay, double yAxisLabelSpacing = 0, double barSpacing = 0, double itemSpacing = 12, InteractionType interaction = InteractionType.selection, Duration duration = const Duration(milliseconds: 400), BarAlignment alignment = BarAlignment.end, bool reverse = false, BarFit fit = BarFit.none})
Constructs an instance of BarChartSettings without grids.
const

Properties

alignment BarAlignment
Alignment of the bars within chart.
final
axisDivisionEdges AxisDivisionEdges
Axis division edges to be painted.
final
barSpacing double
Spacing between bars in one item.
final
duration Duration
The length of time animation should last.
final
fit BarFit
Insription type of the bars within target box (painting zone).
final
hashCode int
The hash code for this object.
no setteroverride
interaction InteractionType
How to interact with the BarChart.
final
itemSpacing double
Spacing between group of bars.
final
reverse bool
Whether the scroll view scrolls in the reading direction.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showAxisX bool
Whether to show X axis or not.
final
showAxisXLabels bool
Whether to show X axis labels or not.
final
showAxisXSelectedLabelIfConcealed bool
Whether to show X axis labels or not if xAxisLabelQuantity is set and label is concealed in normal circumstances.
final
showAxisYLabels bool
Whether to show Y axis labels or not.
final
xAxisLabelQuantity int?
Quantity of the X axis labels to draw.
final
yAxisDivisions int
Divisions of the Y axis or the quantity of the grid lines on Y axis.
final
yAxisLabelSpacing double
Spacing between the Y axis labels and chart itself.
final
yAxisLayout YAxisLayout
Layout type of the Y axis labels.
final

Methods

copyWith({bool allowNullXAxisLabelQuantity = false, int? yAxisDivisions, int? xAxisLabelQuantity, AxisDivisionEdges? axisDivisionEdges, bool? showAxisX, bool? showAxisXLabels, bool? showAxisXSelectedLabelIfConcealed, bool? showAxisYLabels, YAxisLayout? yAxisLayout, double? yAxisLabelSpacing, double? barSpacing, double? itemSpacing, InteractionType? interaction, Duration? duration, BarAlignment? alignment, bool? reverse, BarFit? fit}) BarChartSettings
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