Units / bytes / durations
native
Built-in byte and duration formats
Matrix status native. Verification types · strong. ChartKit option: ChartKitChartSpecV1.axes.y.format.style=bytes.
also duration-ms
Source: chartkit:packages/core/src/generated/schema.ts:644
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": {
"format": {
"style": "bytes"
}
}
}
}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: format.units.md.
| Library | Status | Option | Verification | Source |
|---|---|---|---|---|
| Chart.js | none | — | absence · absence | — |
| Recharts | none | — | absence · absence | — |
| Apache ECharts | none | — | absence · absence | — |
| Highcharts | none | — | absence · absence | — |
| Plotly.js | none | — | absence · absence | — |
| Nivo | none | — | absence · absence | — |
| Victory | none | — | absence · absence | — |
| visx | none | — | absence · absence | — |
| ApexCharts | none | — | absence · absence | — |
| Tremor (npm) | none | — | absence · absence | — |
| Observable Plot | none | — | absence · absence | — |
| Vega-Lite | none | — | absence · absence | — |
| AG Charts | none | — | absence · absence | — |
| amCharts 5 | native | grep: DurationFormatter | grep · weak | @amcharts/amcharts5/.internal/plugins/json/Classes.d.ts:83 |
| Google Charts | none | — | absence · absence | — |
| uPlot | none | — | absence · absence | — |
| TradingView Lightweight Charts | none | — | absence · absence | — |
| MUI X Charts | none | — | absence · absence | — |
| Mermaid (chart-ish diagrams only) | none | — | absence · absence | — |
| AntV G2 | none | — | absence · absence | — |