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.
read / writeinherited
hashCode int
The hash code for this object.
read-onlyinherited
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.
read-onlyinherited
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

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