Line caps / joins
native
Stroke cap and join styles
Matrix status native. Verification types · strong. ChartKit option: ChartKitChartSpecV1.mark.linecap.
Source: chartkit:packages/core/src/generated/schema.ts:891
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
},
"mark": {
"linecap": "round"
}
}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: mark.line.cap.md.
| Library | Status | Option | Verification | Source |
|---|---|---|---|---|
| Chart.js | native | ChartConfiguration.data.datasets.borderCapStyle, ChartConfiguration.data.datasets.borderJoinStyle | types · strong | chart.js/dist/types/index.d.ts:1914 |
| Recharts | native | Line.strokeLinecap | types · strong | @types/react/index.d.ts:3925 |
| Apache ECharts | native | series.lineStyle.cap, series.lineStyle.join | types · strong | echarts/types/dist/shared.d.ts:7783 |
| Highcharts | native | plotOptions.series.linecap | types · strong | highcharts/options/series.d.ts:1039 |
| Plotly.js | none | — | absence · absence | — |
| Nivo | none | — | absence · absence | — |
| Victory | native | VictoryLine.style | types · strong | victory-line/lib/victory-line.d.ts:84 |
| visx | native | LinePath.strokeLinecap | types · strong | @types/react/index.d.ts:3925 |
| ApexCharts | native | stroke.lineCap | types · strong | apexcharts/types/apexcharts.d.ts:2650 |
| Tremor (npm) | none | — | absence · absence | — |
| Observable Plot | native | grep: strokeLinecap | grep · weak | @observablehq/plot/src/mark.d.ts:373 |
| Vega-Lite | native | grep: strokeCap | grep · weak | 725: "strokeCap" |
| AG Charts | unknown | — | conflict · unknown | — |
| amCharts 5 | native | grep: strokeLinecap | grep · weak | @amcharts/amcharts5/.internal/core/render/scene/SceneNode.d.ts:144 |
| Google Charts | none | — | absence · absence | — |
| uPlot | native | Options.series.cap | types · strong | uplot/dist/uPlot.d.ts:944 |
| TradingView Lightweight Charts | none | — | absence · absence | — |
| MUI X Charts | partial | grep: strokeLinecapvia sx | grep · weak | @mui/x-charts/ChartsXAxis/useAxisTicksProps.d.ts:4148 |
| Mermaid (chart-ish diagrams only) | none | — | absence · absence | — |
| AntV G2 | native | grep: lineCap | grep · weak | @antv/g2/lib/theme/create.d.ts:53 |