Features · axis

Axis breaks

native

Skip a range of an axis (gaps, weekends)

Matrix status native. Verification render · strong. ChartKit option: ChartKitChartSpecV1.axes.y.breaks.

axes.y.breaks is a list of {from, to}, up to three gaps. Ticks inside a gap are omitted and the spine draws a zigzag. Overlapping gaps warn CK3069. from must be below to (CK3061).

Source: chartkit:packages/core/src/svg.ts

ChartKit spec

Passed validate() during npm run matrix:refresh. The SVG is the server render.

Units rose in Q2.Units rose in Q2.404555Q1Q2
{
  "version": "1",
  "type": "line",
  "data": [
    {
      "quarter": "Q1",
      "units": 40
    },
    {
      "quarter": "Q2",
      "units": 55
    }
  ],
  "encoding": {
    "x": "quarter",
    "y": "units"
  },
  "a11y": {
    "alt": "Units rose in Q2."
  },
  "size": {
    "width": 640,
    "height": 260
  },
  "axes": {
    "y": {
      "breaks": [
        {
          "from": 45,
          "to": 52
        }
      ]
    }
  }
}

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: axis.breaks.md.

LibraryStatusOptionVerificationSource
Chart.jsnone—absence · absence—
Rechartsnone—absence · absence—
Apache EChartsnativexAxis.breaksECharts 6 axis breakstypes · strongecharts/types/dist/shared.d.ts:2658
HighchartsnativexAxis.breaksbroken-axis moduletypes · stronghighcharts/highcharts.d.ts:108155
Plotly.jsnativelayout.xaxis.rangebreakstypes · strongplot-schema.json#layout.layoutAttributes.xaxis.rangebreaks
Nivonone—absence · absence—
Victorynone—absence · absence—
visxnone—absence · absence—
ApexChartsnone—absence · absence—
Tremor (npm)none—absence · absence—
Observable Plotunknown—conflict · unknown—
Vega-Litenone—absence · absence—
AG Chartsnone—absence · absence—
amCharts 5unknown—unverified · unknown—
Google Chartsnone—absence · absence—
uPlotnone—absence · absence—
TradingView Lightweight Chartsnativegrep: ignoreWhitespaceIndicesbusiness-day time scale skips gapsgrep · weak391: * Check if a time value is a business day object.
MUI X Chartsnone—absence · absence—
Mermaid (chart-ish diagrams only)unknown—conflict · unknown—
AntV G2nativegrep: breaksgrep · weak@antv/g2/lib/runtime/constant.d.ts:10