BarChartData class

Represents a data point for a bar chart.

This model contains the value of the bar, its label, and an optional custom color for individual bars. It is used to define the data to be displayed in the bar chart.

Constructors

BarChartData({required double value, required String label, Color? color})
Creates an instance of BarChartData.
const

Properties

color Color?
Optional custom color for individual bars. If not provided, a default color will be used.
final
hashCode int
The hash code for this object.
no setterinherited
label String
The label displayed for the bar.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value double
The numeric value represented by the bar.
final

Methods

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