ChartAxis class abstract final

Cross-chart math & layout helpers so no chart re-implements them: axis tick steps, cartesian/radial bounds, and text-alignment offsets. Pure value math.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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

Static Methods

gridStep(double maxValue) double
A "nice" grid step for a max value, chosen on a log-magnitude basis so ticks land on 1/2/5 multiples. Mirrors the Compose calculateGridStep.
ticks({required double max, required int count}) List<double>
Evenly spaced tick values from 0...maxValue, inclusive, with count steps.