LinearScale class

The specification of a linear scale.

It converts num to doubles normalized to [0, 1] linearly.



LinearScale({num? min, num? max, double? marginMin, double? marginMax, String? title, String? formatter(num)?, List<num>? ticks, int? tickCount, bool? niceRange})
Creates a linear scale.


formatter ↔ (String? Function(num)?)
Convert the value to a String on the chart.
read / writeinherited
hashCode int
The hash code for this object.
marginMax double?
The margin ratio from maxinum input value to calculated max.
read / writeinherited
marginMin double?
The margin ratio from minimum input value to calculated min.
read / writeinherited
max num?
Indecates the maximum input boundary directly.
read / writeinherited
min num?
Indicates the minimum input boundary directly.
read / writeinherited
niceRange bool?
Whether to extend the min and max to get nice round values.
read / writeinherited
runtimeType Type
A representation of the runtime type of the object.
tickCount int?
The desired count of axis ticks.
read / writeinherited
ticks List<num>?
Indicates the axis ticks directly.
read / writeinherited
title String?
Title of the variable this scale corresponds to.
read / writeinherited


noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
toString() String
A string representation of this object.


operator ==(Object other) bool
The equality operator.