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.
{
"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.
| Library | Status | Option | Verification | Source |
|---|---|---|---|---|
| Chart.js | none | — | absence · absence | — |
| Recharts | none | — | absence · absence | — |
| Apache ECharts | native | xAxis.breaksECharts 6 axis breaks | types · strong | echarts/types/dist/shared.d.ts:2658 |
| Highcharts | native | xAxis.breaksbroken-axis module | types · strong | highcharts/highcharts.d.ts:108155 |
| Plotly.js | native | layout.xaxis.rangebreaks | types · strong | plot-schema.json#layout.layoutAttributes.xaxis.rangebreaks |
| Nivo | none | — | absence · absence | — |
| Victory | none | — | absence · absence | — |
| visx | none | — | absence · absence | — |
| ApexCharts | none | — | absence · absence | — |
| Tremor (npm) | none | — | absence · absence | — |
| Observable Plot | unknown | — | conflict · unknown | — |
| Vega-Lite | none | — | absence · absence | — |
| AG Charts | none | — | absence · absence | — |
| amCharts 5 | unknown | — | unverified · unknown | — |
| Google Charts | none | — | absence · absence | — |
| uPlot | none | — | absence · absence | — |
| TradingView Lightweight Charts | native | grep: ignoreWhitespaceIndicesbusiness-day time scale skips gaps | grep · weak | 391: * Check if a time value is a business day object. |
| MUI X Charts | none | — | absence · absence | — |
| Mermaid (chart-ish diagrams only) | unknown | — | conflict · unknown | — |
| AntV G2 | native | grep: breaks | grep · weak | @antv/g2/lib/runtime/constant.d.ts:10 |