Paginated / scrolling legend
native
Handle many legend items
Matrix status native. Verification types · strong. ChartKit option: ChartKitChartSpecV1.legend.maxRows.
Rows past maxRows page.
Source: chartkit:packages/core/src/generated/schema.ts:203
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
},
"legend": {
"maxRows": 1
}
}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: legend.scroll.md.
| Library | Status | Option | Verification | Source |
|---|---|---|---|---|
| Chart.js | none | — | absence · absence | — |
| Recharts | none | — | absence · absence | — |
| Apache ECharts | native | legend.type'scroll' | types · strong | echarts/types/dist/shared.d.ts:8225 |
| Highcharts | native | legend.navigation, legend.maxHeight | types · strong | highcharts/highcharts.d.ts:13563 |
| Plotly.js | partial | layout.legend.maxheight | types · strong | plot-schema.json#layout.layoutAttributes.legend.maxheight |
| Nivo | none | — | absence · absence | — |
| Victory | native | VictoryLegend.itemsPerRow | types · strong | victory-legend/lib/victory-legend.d.ts:17 |
| visx | none | — | absence · absence | — |
| ApexCharts | none | — | absence · absence | — |
| Tremor (npm) | native | LineChart.enableLegendSlider | types · strong | @tremor/react/dist/index.d.ts:75 |
| Observable Plot | none | — | absence · absence | — |
| Vega-Lite | native | grep: columns | grep · weak | 5231: "columns" |
| AG Charts | native | grep: pagination | grep · weak | ag-charts-community/dist/types/src/chart/tooltip/tooltipContent.d.ts:37 |
| amCharts 5 | native | grep: verticalScrollbar | grep · weak | @amcharts/amcharts5/.internal/core/render/Container.d.ts:73 |
| Google Charts | native | grep: maxLineslegend.pageIndex / scrollArrows | grep · weak | @types/google.visualization/index.d.ts:512 |
| uPlot | none | — | absence · absence | — |
| TradingView Lightweight Charts | none | — | absence · absence | — |
| MUI X Charts | native | grep: overflow | grep · weak | @mui/x-charts/SparkLineChart/SparkLineChart.d.ts:100 |
| Mermaid (chart-ish diagrams only) | none | — | absence · absence | — |
| AntV G2 | native | grep: navEffect | grep · weak | @antv/g2/lib/theme/create.d.ts:329 |