Features · legend

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.

Units rose in Q2.Units rose in Q2.40455055Q1Q2
{
  "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.

LibraryStatusOptionVerificationSource
Chart.jsnone—absence · absence—
Rechartsnone—absence · absence—
Apache EChartsnativelegend.type'scroll'types · strongecharts/types/dist/shared.d.ts:8225
Highchartsnativelegend.navigation, legend.maxHeighttypes · stronghighcharts/highcharts.d.ts:13563
Plotly.jspartiallayout.legend.maxheighttypes · strongplot-schema.json#layout.layoutAttributes.legend.maxheight
Nivonone—absence · absence—
VictorynativeVictoryLegend.itemsPerRowtypes · strongvictory-legend/lib/victory-legend.d.ts:17
visxnone—absence · absence—
ApexChartsnone—absence · absence—
Tremor (npm)nativeLineChart.enableLegendSlidertypes · strong@tremor/react/dist/index.d.ts:75
Observable Plotnone—absence · absence—
Vega-Litenativegrep: columnsgrep · weak5231: "columns"
AG Chartsnativegrep: paginationgrep · weakag-charts-community/dist/types/src/chart/tooltip/tooltipContent.d.ts:37
amCharts 5nativegrep: verticalScrollbargrep · weak@amcharts/amcharts5/.internal/core/render/Container.d.ts:73
Google Chartsnativegrep: maxLineslegend.pageIndex / scrollArrowsgrep · weak@types/google.visualization/index.d.ts:512
uPlotnone—absence · absence—
TradingView Lightweight Chartsnone—absence · absence—
MUI X Chartsnativegrep: overflowgrep · weak@mui/x-charts/SparkLineChart/SparkLineChart.d.ts:100
Mermaid (chart-ish diagrams only)none—absence · absence—
AntV G2nativegrep: navEffectgrep · weak@antv/g2/lib/theme/create.d.ts:329