LinearTicks class
"Nice" ticks for a linear scale: multiples of 1, 2, 2.5 or 5 × 10ⁿ.
- Inheritance
-
- Object
- ChartTicks
- LinearTicks
Constructors
- LinearTicks({double? spacing, ChartValueFormatter? format, int minorCount = 0})
-
Creates linear ticks roughly
spacinglogical pixels apart.const
Properties
- format → ChartValueFormatter?
-
Custom label formatter.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- minorCount → int
-
How many minor ticks divide the step between two ticks.
4puts a minor tick at every fifth of a step. They are left out while they would be less than 3 logical pixels apart.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- spacing → double?
-
Target distance between ticks, in logical pixels.
final
Methods
-
generate(
ChartTickContext context) → List< ChartTick> -
Returns the ticks to show for
context, in ascending order.override -
generateMinor(
ChartTickContext context, List< ChartTick> major) → List<double> -
Returns the values of the minor ticks for
context, in ascending order: marks without a label between themajorticks, which are what generate returned for the same context. The default is none.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.
override