LinearScale class

The specification of a linear scale.

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

Inheritance

Constructors

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.

Properties

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

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.
override