Features · data

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.

Units rose in Q2.Units rose in Q2.40455055
{
  "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.

LibraryStatusOptionVerificationSource
Chart.jsplugin—time scale needs a date adapternpm · weak—
RechartspartialXAxis.scale=timetypes · strongrecharts/types/cartesian/XAxis.d.ts:84
Apache EChartsnativexAxis.type=timetypes · strongecharts/types/dist/shared.d.ts:2729
HighchartsnativexAxis.type=datetimetypes · stronghighcharts/highcharts.d.ts:108788
Plotly.jsnativelayout.xaxis.type=datetypes · strongplot-schema.json#layout.layoutAttributes.xaxis.type
NivonativeLine.xScalexScale type time with formattypes · strong@nivo/line/dist/types/types.d.ts:130
VictorynativeVictoryChart.scaletypes · strongvictory-core/lib/victory-util/common-props.d.ts:42
visxnativegrep: scaleTimegrep · weak@visx/vendor/node_modules/@types/d3-scale/index.d.ts:993
ApexChartsnativexaxis.type=datetimetypes · strongapexcharts/types/apexcharts.d.ts:4897
Tremor (npm)unknown—pre-formatted stringsunverified · unknown—
Observable Plotnativegrep: utcscale type utc/timegrep · weak@observablehq/plot/src/symbol.d.ts:19
Vega-Litenativegrep: temporalgrep · weak1165: "description"
AG Chartsnativegrep: time-axisaxis type 'time'grep · weakag-charts-community/dist/types/src/scale/timeScale.d.ts:6
amCharts 5nativeDateAxistypes · strong@amcharts/amcharts5/.internal/charts/xy/axes/DateAxis.d.ts:175
Google Chartsunknowngrep: datecolumn types date/datetimeunverified · unknown—
uPlotnativeOptions.scalesscales.x.time (default true for x)types · stronguplot/dist/uPlot.d.ts:379
TradingView Lightweight Chartsnativegrep: UTCTimestampgrep · weak394: * @returns `true` if `time` is a {@link BusinessDay} object, false otherwise.
MUI X ChartsnativeLineChart.xAxis.scaleType=timetypes · strong@mui/x-charts/models/axis.d.mts:365
Mermaid (chart-ish diagrams only)nativegrep: dateFormatgantt onlygrep · weakmermaid/dist/diagrams/gantt/ganttDb.d.ts:9
AntV G2nativegrep: timegrep · weak@antv/g2/lib/index.d.ts:11