Compact / SI number abbreviations
native
1.2k, 3.4M style
Matrix status native. Verification types · strong. ChartKit option: ChartKitChartSpecV1.axes.y.format.style=compact.
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": "compact"
}
}
}
}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.compact.md.
| Library | Status | Option | Verification | Source |
|---|---|---|---|---|
| Chart.js | manual | Plugin.afterDatasetsDraw | mechanism · weak | chart.js/dist/types/index.d.ts:1051 |
| Recharts | manual | Customized | mechanism · weak | recharts/types/component/Customized.d.ts:26 |
| Apache ECharts | manual | series.type=custom | mechanism · weak | echarts/types/dist/shared.d.ts:11176 |
| Highcharts | native | lang.numericSymbols | types · strong | highcharts/highcharts.d.ts:12888 |
| Plotly.js | native | layout.yaxis.exponentformat=SI | types · strong | plot-schema.json#layout.layoutAttributes.yaxis.exponentformat |
| Nivo | native | grep: format'.2s' | grep · weak | @nivo/legends/dist/types/types.d.ts:3 |
| Victory | manual | VictoryBarProps.dataComponent | mechanism · weak | victory-core/lib/victory-util/common-props.d.ts:9 |
| visx | manual | Group | mechanism · weak | @visx/group/lib/Group.d.ts:15 |
| ApexCharts | unknown | — | unverified · unknown | — |
| Tremor (npm) | unknown | — | unverified · unknown | — |
| Observable Plot | native | grep: tickFormat'~s' | grep · weak | @observablehq/plot/src/scales.d.ts:591 |
| Vega-Lite | native | grep: format'.2s' | grep · weak | 84: "description" |
| AG Charts | native | grep: format'~s' | grep · weak | ag-charts-types/dist/types/src/serverSideRenderingOptions.d.ts:3 |
| amCharts 5 | native | grep: bigNumberPrefixes | grep · weak | @amcharts/amcharts5/.internal/plugins/json/Classes.d.ts:159 |
| Google Charts | native | grep: compactNumberFormat pattern 'short' | grep · weak | @types/google.visualization/index.d.ts:1577 |
| uPlot | manual | Options.hooks | mechanism · weak | uplot/dist/uPlot.d.ts:394 |
| TradingView Lightweight Charts | manual | grep: ICustomSeriesPaneView | mechanism · weak | 1629: addCustomSeries<TData extends CustomData<HorzScaleItem>, TOptions extends CustomSeriesOptions, TPartialOptions extends SeriesPartialOptions<TOptions> = SeriesPartialOptions<TOptions>>(customPaneView |
| MUI X Charts | manual | ChartsContainer | mechanism · weak | @mui/x-charts/ChartsContainer/ChartsContainer.d.mts:34 |
| Mermaid (chart-ish diagrams only) | unknown | — | conflict · unknown | — |
| AntV G2 | native | grep: labelFormatter | grep · weak | @antv/g2/lib/component/legendCategory.d.ts:5 |