CategoryLabelProvider class
Returns a label from the matching LabelCategory or a numeric label if no matching category is available.
If you only want to use a number label, take a look at the ValueLabelProvider class.
- Inheritance
-
- Object
- GaugeLabelProvider
- CategoryLabelProvider
Constructors
-
CategoryLabelProvider(List<
LabelCategory> categories, {int fractionDigits = 0}) -
const
Properties
-
categories
→ List<
LabelCategory> -
final
- fractionDigits → int
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getLabel(
double value) → String -
Returns a string label for the specified
value
.override -
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