Features · layout

Chart title and subtitle

native

Built-in title text

Matrix status native. Verification types · strong. ChartKit option: ChartKitChartSpecV1.title, ChartKitChartSpecV1.subtitle.

Source: chartkit:packages/core/src/generated/schema.ts:54, chartkit:packages/core/src/generated/schema.ts:58

ChartKit spec

Passed validate() during npm run matrix:refresh. The SVG is the server render.

UnitsUnits rose in Q2.Units40455055Q1Q2
{
  "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
  },
  "title": "Units"
}

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: layout.title.md.

LibraryStatusOptionVerificationSource
Chart.jsnativegrep: titleplugins.title / plugins.subtitlegrep · weakchart.js/dist/types/index.d.ts:791
Rechartsunknown—render your own headingconflict · unknown—
Apache EChartsnativetitle.text, title.subtexttypes · strongecharts/types/dist/shared.d.ts:10516
Highchartsnativetitle.text, subtitle.texttypes · stronghighcharts/highcharts.d.ts:107099
Plotly.jsnativelayout.title.text, layout.title.subtitletypes · strongplot-schema.json#layout.layoutAttributes.title.text
Nivounknown—conflict · unknown—
VictorypartialVictoryLabeladd a VictoryLabeltypes · strongvictory-core/lib/victory-label/victory-label.d.ts:54
visxunknown—conflict · unknown—
ApexChartsnativetitle.text, subtitle.texttypes · strongapexcharts/types/apexcharts.d.ts:2450
Tremor (npm)unknown—conflict · unknown—
Observable Plotnativegrep: titlegrep · weak@observablehq/plot/src/plot.d.ts:105
Vega-Litenativegrep: titlegrep · weak1400: "description"
AG ChartsnativeAgChartOptions.title, AgChartOptions.subtitletypes · strongag-charts-types/dist/types/src/chart/chartOptions.d.ts:250
amCharts 5nativegrep: Labelroot.container Labelgrep · weak@amcharts/amcharts5/stock.d.ts:55
Google Chartsnativegrep: titlegrep · weak@types/google.visualization/index.d.ts:504
uPlotnativeOptions.titletypes · stronguplot/dist/uPlot.d.ts:343
TradingView Lightweight Chartsunknown—conflict · unknown—
MUI X Chartsunknown—conflict · unknown—
Mermaid (chart-ish diagrams only)nativegrep: title'title' in diagram textgrep · weakmermaid/dist/utils.d.ts:223
AntV G2nativegrep: titlegrep · weak@antv/g2/lib/index.d.ts:115