BarChartData class
Data for the BarChart.
Constructors
-
BarChartData({required Map<
DateTime, List< data, DateTime? initialSelectedPeriod, ValueChanged<double> >DateTime> ? onSelectedPeriodChanged, double? predefinedMaxValue, Map<num, num> maxValueRoundingMap = defaultMaxValueRoundingMap, TooltipBuilder<List< titleBuilder = defaultTitleBuilder, TooltipBuilder<double> >List< subtitleBuilder = defaultSubtitleBuilder, RichLabelBuilder<double> >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< ? data, DateTime? initialSelectedPeriod, double? predefinedMaxValue, Map<double> >num, num> ? maxValueRoundingMap, TooltipBuilder<List< ? titleBuilder, TooltipBuilder<double> >List< ? subtitleBuilder, RichLabelBuilder<double> >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
Static Methods
-
defaultSubtitleBuilder(
DateTime key, List< double> value) → String -
defaultTitleBuilder(
DateTime key, List< double> value) → String -
defaultXAxisLabelBuilder(
DateTime key, TextStyle style) → TextSpan -
defaultYAxisLabelBuilder(
double value) → String
Constants
-
defaultMaxValueRoundingMap
→ const Map<
num, num>