Search results

DateTimeCategory API in Angular Chart API component

Category module is used to render category axis.

Methods

calculateDateTimeNiceInterval

Method to calculate numeric datetime interval.

Returns number

getIndexedAxisLabel

To get the Indexed axis label text with axis format for DateTimeCategory axis.

Parameter Type Description
value string value
format Function format

Returns string

isMaximum

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

sameInterval

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