Skip to main content

TimeScaleTimeUnit

Namespace: Wisej.Web.Ext.ChartJS3

Assembly: Wisej.Web.Ext.ChartJS3 (4.1.0.0)

Specifies the time units used by the time scale.

public enum TimeScaleTimeUnit

Used by the Unit and Round properties. The format shown for each member is the default Moment.js format used for the axis tick marks, which can be changed using DisplayFormats.

Example:

var xAxis = this.chartJS31.Options.Scales.xAxes[0];
xAxis.Type = ScaleType.Time;
xAxis.Time.Unit = TimeScaleTimeUnit.quarter;

Fields​

NameDescriptionValue
dayDays 'll'
hourHours 'MMM D, hA'
millisecondMilliseconds 'SSS [ms]'
minuteMinutes 'h:mm a'
monthMonths 'MMM YYYY'
quarterQuarters '[Q]Q - YYYY'
secondSeconds 'h:mm:ss a'
weekWeeks 'll'
yearYears 'YYYY'