TimeScale class

The specification of a time scale.

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

This time scale will not apply nice numbers and range.



TimeScale({DateTime? min, DateTime? max, double? marginMin, double? marginMax, String? title, String? formatter(DateTime)?, List<DateTime>? ticks, int? tickCount})


formatter ↔ (String? Function(DateTime)?)
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 DateTime?
Indecates the maximum input boundary directly.
read / writeinherited
min DateTime?
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<DateTime>?
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.