Category module is used to render category axis.
Method to calculate numeric datetime interval.
Returns number
To get the Indexed axis label text with axis format for DateTimeCategory axis.
Parameter | Type | Description |
---|---|---|
value | string |
value |
format | Function |
format |
Returns string
To check whether the distance between labels is above the axisLabel maximum length.
Parameter | Type | Description |
---|---|---|
index | number |
The current index. |
previousIndex | number |
The previous index. |
axis | Axis |
The axis. |
Returns boolean
Get the same interval.
Parameter | Type | Description |
---|---|---|
currentDate | number |
The current date. |
previousDate | number |
The previous date. |
type | RangeIntervalType |
The type of range interval. |
index | number |
The index of the interval. |
Returns boolean