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.

Inheritance

Constructors

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

Properties

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