Histogram
native
Binned distribution of one variable
Matrix status native. Verification types · strong. ChartKit option: ChartKitChartSpecV1.type=histogram.
Source: chartkit:packages/core/src/generated/schema.ts:24
ChartKit spec
Passed validate() during npm run matrix:refresh. The SVG is the server render.
{
"version": "1",
"type": "histogram",
"data": [
{
"x": 1
},
{
"x": 2
},
{
"x": 2
},
{
"x": 8
}
],
"encoding": {
"x": "x"
},
"mark": {
"bins": 2
},
"a11y": {
"alt": "Most are low."
},
"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: type.histogram.md.
| Library | Status | Option | Verification | Source |
|---|---|---|---|---|
| Chart.js | manual | Plugin.afterDatasetsDrawpre-bin + bar | mechanism · weak | chart.js/dist/types/index.d.ts:1051 |
| Recharts | manual | Customized | mechanism · weak | recharts/types/component/Customized.d.ts:26 |
| Apache ECharts | plugin | —ecStat transform; or pre-bin | npm · weak | — |
| Highcharts | native | series.type=histogram | types · strong | highcharts/options/abands.d.ts:1386 |
| Plotly.js | native | trace.type=histogram | types · strong | plot-schema.json#traces.histogram |
| Nivo | manual | Line.layers | mechanism · weak | @nivo/line/dist/types/types.d.ts:171 |
| Victory | native | VictoryHistogram | types · strong | victory-histogram/lib/victory-histogram.d.ts:73 |
| visx | manual | Group | mechanism · weak | @visx/group/lib/Group.d.ts:15 |
| ApexCharts | partial | chart.type=histogrambar with pre-binned data | types · strong | apexcharts/types/apexcharts.d.ts:1767 |
| Tremor (npm) | none | — | absence · absence | — |
| Observable Plot | native | binX, rectYrectY(data, binX()) | types · strong | @observablehq/plot/src/transforms/bin.d.ts:201 |
| Vega-Lite | native | grep: binencoding.x.bin | grep · weak | 1172: "description" |
| AG Charts | native | series.type=histogram | types · strong | ag-charts-types/dist/types/src/series/cartesian/areaOptions.d.ts:86 |
| amCharts 5 | manual | Graphicsdocumented histogram via data processing | mechanism · weak | @amcharts/amcharts5/.internal/core/render/Graphics.d.ts:162 |
| Google Charts | native | Histogram | types · strong | @types/google.visualization/index.d.ts:866 |
| uPlot | manual | Options.hooks | mechanism · weak | uplot/dist/uPlot.d.ts:394 |
| TradingView Lightweight Charts | unknown | — | conflict · unknown | — |
| 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: binX | grep · weak | @antv/g2/lib/index.d.ts:28 |