Features · scale

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.

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

LibraryStatusOptionVerificationSource
Chart.jsnativegrep: TimeScalerequires date adaptergrep · weakchart.js/dist/types/index.d.ts:3380
RechartsnativeXAxis.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
Nivonativegrep: TimeScalegrep · weak@nivo/static/dist/types/mappings/commons/scales.d.ts:4
Victorynativegrep: timegrep · weakvictory-shared-events/lib/victory-shared-events.d.ts:17
visxnativegrep: scaleTimegrep · weak@visx/scale/lib/index.d.ts:5
ApexChartsnativexaxis.type=datetimetypes · strongapexcharts/types/apexcharts.d.ts:4897
Tremor (npm)none—absence · absence—
Observable Plotnativegrep: utcgrep · weak@observablehq/plot/src/scales.d.ts:181
Vega-Litenativegrep: temporalgrep · weak1165: "description"
AG Chartsnativegrep: timegrep · 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 Chartsnativegrep: datetimegrep · weak@types/google.visualization/index.d.ts:1556
uPlotnativegrep: timegrep · weak147: /** converts a Date into new Date that's time-adjusted for the given IANA Time Zone Name */
TradingView Lightweight Chartsnativegrep: Timegrep · weak165: * Represents the type of a tick mark on the time axis.
MUI X ChartsnativeLineChart.xAxis.scaleType=timetypes · strong@mui/x-charts/models/axis.d.mts:365
Mermaid (chart-ish diagrams only)nativegrep: dateFormatgantt axisgrep · weakmermaid/dist/diagrams/gantt/ganttDb.d.ts:9
AntV G2nativegrep: timegrep · weak@antv/g2/lib/index.d.ts:11