DoughnutChartData class

Represents a data point for a doughnut chart.

Each data point consists of:

  • A label representing the category or name of the data.
  • A value representing the numerical value associated with the category.
  • A color defining the visual representation of the data in the chart.

Constructors

DoughnutChartData({required String label, required double value, required Color color})
Creates a new instance of DoughnutChartData.
const

Properties

color Color
The color used to represent this data point in the chart.
final
hashCode int
The hash code for this object.
no setterinherited
label String
The label or category name of the data point.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value double
The numerical value associated with this data point.
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