TimeScaleTimeUnit
Namespace: Wisej.Web.Ext.ChartJS3
Assembly: Wisej.Web.Ext.ChartJS3 (4.1.0.0)
Specifies the time units used by the time scale.
- C#
- VB.NET
public enum TimeScaleTimeUnit
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
| Name | Description | Value |
|---|---|---|
| day | Days 'll' | |
| hour | Hours 'MMM D, hA' | |
| millisecond | Milliseconds 'SSS [ms]' | |
| minute | Minutes 'h:mm a' | |
| month | Months 'MMM YYYY' | |
| quarter | Quarters '[Q]Q - YYYY' | |
| second | Seconds 'h:mm:ss a' | |
| week | Weeks 'll' | |
| year | Years 'YYYY' |