BarChartData class

Data for the BarChart.

Constructors

BarChartData({required Map<DateTime, List<double>> data, DateTime? initialSelectedPeriod, ValueChanged<DateTime>? onSelectedPeriodChanged, double? predefinedMaxValue, Map<num, num> maxValueRoundingMap = defaultMaxValueRoundingMap, TooltipBuilder<List<double>> titleBuilder = defaultTitleBuilder, TooltipBuilder<List<double>> subtitleBuilder = defaultSubtitleBuilder, RichLabelBuilder<DateTime> xAxisLabelBuilder = defaultXAxisLabelBuilder, LabelBuilder<double> yAxisLabelBuilder = defaultYAxisLabelBuilder})
Constructs an instance of BarChartData.
const

Properties

canDraw bool
Checks whether chart and point could be drawned or not.
no setter
data Map<DateTime, List<double>>
Map of the values that corresponds to the dates.
final
hashCode int
The hash code for this object.
no setteroverride
initialSelectedPeriod DateTime?
Initial selected period of the bar chart.
final
maxValue double
Determines max value for chart to draw.
no setter
maxValueRoundingMap Map<num, num>
Rounding map of the maxValue.
final
onSelectedPeriodChanged ValueChanged<DateTime>?
Callback that notifies if selected period has changed.
final
predefinedMaxValue double?
Predefined max value for the chart.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectedPeriod DateTime?
Selected period of the bar chart.
no setter
subtitleBuilder TooltipBuilder<List<double>>
Text builder for the tooltip subtitle.
final
titleBuilder TooltipBuilder<List<double>>
Text builder for the tooltip title.
final
xAxisDates List<DateTime>
Gets list of DateTime that is used to build X axis labels.
no setter
xAxisLabelBuilder RichLabelBuilder<DateTime>
Text builder for the X axis label.
final
yAxisLabelBuilder LabelBuilder<double>
Text builder for the Y axis label.
final

Methods

copyWith({bool allowNullPredefinedMaxValue = false, Map<DateTime, List<double>>? data, DateTime? initialSelectedPeriod, double? predefinedMaxValue, Map<num, num>? maxValueRoundingMap, TooltipBuilder<List<double>>? titleBuilder, TooltipBuilder<List<double>>? subtitleBuilder, RichLabelBuilder<DateTime>? xAxisLabelBuilder, LabelBuilder<double>? yAxisLabelBuilder}) BarChartData
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

Constants

defaultMaxValueRoundingMap → const Map<num, num>