Time values (Date/ISO/epoch)
native
Accepts dates as Date objects, ISO strings or epoch numbers
Matrix status native. Verification types · strong. ChartKit option: ChartKitChartSpecV1.encoding.x.type=temporal.
Source: chartkit:packages/core/src/generated/schema.ts:428
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",
"type": "temporal"
},
"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: data.time.md.
| Library | Status | Option | Verification | Source |
|---|---|---|---|---|
| Chart.js | plugin | —time scale needs a date adapter | npm · weak | — |
| Recharts | partial | 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 | Line.xScalexScale type time with format | types · strong | @nivo/line/dist/types/types.d.ts:130 |
| Victory | native | VictoryChart.scale | types · strong | victory-core/lib/victory-util/common-props.d.ts:42 |
| visx | native | grep: scaleTime | grep · weak | @visx/vendor/node_modules/@types/d3-scale/index.d.ts:993 |
| ApexCharts | native | xaxis.type=datetime | types · strong | apexcharts/types/apexcharts.d.ts:4897 |
| Tremor (npm) | unknown | —pre-formatted strings | unverified · unknown | — |
| Observable Plot | native | grep: utcscale type utc/time | grep · weak | @observablehq/plot/src/symbol.d.ts:19 |
| Vega-Lite | native | grep: temporal | grep · weak | 1165: "description" |
| AG Charts | native | grep: time-axisaxis type '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 | unknown | grep: datecolumn types date/datetime | unverified · unknown | — |
| uPlot | native | Options.scalesscales.x.time (default true for x) | types · strong | uplot/dist/uPlot.d.ts:379 |
| TradingView Lightweight Charts | native | grep: UTCTimestamp | grep · weak | 394: * @returns `true` if `time` is a {@link BusinessDay} object, false otherwise. |
| 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 only | grep · weak | mermaid/dist/diagrams/gantt/ganttDb.d.ts:9 |
| AntV G2 | native | grep: time | grep · weak | @antv/g2/lib/index.d.ts:11 |