Time scale
native
Continuous time axis with calendar-aware ticks
Matrix status native. Verification types · strong. ChartKit option: ChartKitChartSpecV1.encoding.x.scale.type=time.
Source: chartkit:packages/core/src/generated/schema.ts:683
ChartKit spec
Passed validate() during npm run matrix:refresh. The SVG is the server render.
{
"version": "1",
"type": "line",
"data": [
{
"quarter": "Q1",
"units": 40
},
{
"quarter": "Q2",
"units": 55
}
],
"encoding": {
"x": {
"field": "quarter",
"scale": {
"type": "time"
}
},
"y": "units"
},
"a11y": {
"alt": "Units rose in Q2."
},
"size": {
"width": 640,
"height": 260
}
}Other libraries
Option names are the paths recorded in the matrix. A grep-only cell names the identifier that matched, not a render test. Markdown copy: scale.time.md.
| Library | Status | Option | Verification | Source |
|---|---|---|---|---|
| Chart.js | native | grep: TimeScalerequires date adapter | grep · weak | chart.js/dist/types/index.d.ts:3380 |
| Recharts | native | XAxis.scale=time | types · strong | recharts/types/cartesian/XAxis.d.ts:84 |
| Apache ECharts | native | xAxis.type=time | types · strong | echarts/types/dist/shared.d.ts:2729 |
| Highcharts | native | xAxis.type=datetime | types · strong | highcharts/highcharts.d.ts:108788 |
| Plotly.js | native | layout.xaxis.type=date | types · strong | plot-schema.json#layout.layoutAttributes.xaxis.type |
| Nivo | native | grep: TimeScale | grep · weak | @nivo/static/dist/types/mappings/commons/scales.d.ts:4 |
| Victory | native | grep: time | grep · weak | victory-shared-events/lib/victory-shared-events.d.ts:17 |
| visx | native | grep: scaleTime | grep · weak | @visx/scale/lib/index.d.ts:5 |
| ApexCharts | native | xaxis.type=datetime | types · strong | apexcharts/types/apexcharts.d.ts:4897 |
| Tremor (npm) | none | — | absence · absence | — |
| Observable Plot | native | grep: utc | grep · weak | @observablehq/plot/src/scales.d.ts:181 |
| Vega-Lite | native | grep: temporal | grep · weak | 1165: "description" |
| AG Charts | native | grep: time | grep · weak | ag-charts-community/dist/types/src/scale/timeScale.d.ts:6 |
| amCharts 5 | native | DateAxis | types · strong | @amcharts/amcharts5/.internal/charts/xy/axes/DateAxis.d.ts:175 |
| Google Charts | native | grep: datetime | grep · weak | @types/google.visualization/index.d.ts:1556 |
| uPlot | native | grep: time | grep · weak | 147: /** converts a Date into new Date that's time-adjusted for the given IANA Time Zone Name */ |
| TradingView Lightweight Charts | native | grep: Time | grep · weak | 165: * Represents the type of a tick mark on the time axis. |
| MUI X Charts | native | LineChart.xAxis.scaleType=time | types · strong | @mui/x-charts/models/axis.d.mts:365 |
| Mermaid (chart-ish diagrams only) | native | grep: dateFormatgantt axis | grep · weak | mermaid/dist/diagrams/gantt/ganttDb.d.ts:9 |
| AntV G2 | native | grep: time | grep · weak | @antv/g2/lib/index.d.ts:11 |