DefaultAxisValueFormatter class
Formats axis labels with a fixed number of decimal digits and thousands separators. An axis creates one with its
computed AxisBase.decimals while no formatter is assigned.
- Inheritance
-
- Object
- IAxisValueFormatter
- DefaultAxisValueFormatter
Constructors
- DefaultAxisValueFormatter(int decimalDigits)
-
Creates a formatter with
decimalDigitsdecimal digits.
Properties
- decimalDigits → int
-
Number of decimal digits the formatter produces; 0 or less formats whole numbers.
final
- format → DecimalFormat
-
The number format used for the labels.
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
-
getFormattedValue(
double value, AxisBase axis) → String -
Returns the label text.
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