Coordinate systems (polar, transpose, geo)
partial
Switch coordinate system of the same marks
Matrix status partial. Verification types · strong. ChartKit option: ChartKitChartSpecV1.layout.coordinate=polar.
layout.coordinate polar draws on radial-bar and rose. A bar repairs to radial-bar, and a pie or donut repairs to rose. Other marks stay cartesian and the coordinate is removed.
Source: chartkit:packages/core/src/charts/radial-bar.ts:1
ChartKit spec
Passed validate() during npm run matrix:refresh. The SVG is the server render.
{
"version": "1",
"type": "radial-bar",
"data": [
{
"desk": "Music",
"weeknight": 186,
"saturday": 210
},
{
"desk": "Talk",
"weeknight": 74,
"saturday": 48
},
{
"desk": "News",
"weeknight": 36,
"saturday": 22
},
{
"desk": "Sky",
"weeknight": 18,
"saturday": 16
}
],
"encoding": {
"x": "desk",
"y": [
"weeknight",
"saturday"
]
},
"layout": {
"coordinate": "polar"
},
"a11y": {
"alt": "Saturday music runs longer, and talk shrinks."
},
"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: layout.polar.coords.md.
| Library | Status | Option | Verification | Source |
|---|---|---|---|---|
| Chart.js | native | grep: RadialLinearScaleradial scale for radar/polarArea only | grep · weak | chart.js/dist/types/index.d.ts:3514 |
| Recharts | native | PolarAngleAxis, PolarRadiusAxis | types · strong | recharts/types/polar/PolarAngleAxis.d.ts:182 |
| Apache ECharts | native | polar, angleAxis | types · strong | echarts/types/dist/shared.d.ts:12572 |
| Highcharts | native | chart.polar | types · strong | highcharts/highcharts.d.ts:6526 |
| Plotly.js | native | layout.polar | types · strong | plot-schema.json#layout.layoutAttributes.polar |
| Nivo | unknown | — | conflict · unknown | — |
| Victory | native | VictoryChart.polar | types · strong | victory-core/lib/victory-util/common-props.d.ts:40 |
| visx | native | GridPolar, LineRadial | types · strong | @visx/grid/lib/grids/GridPolar.d.ts:113 |
| ApexCharts | unknown | — | conflict · unknown | — |
| Tremor (npm) | none | — | absence · absence | — |
| Observable Plot | native | grep: projection | grep · weak | @observablehq/plot/src/projection.d.ts:5 |
| Vega-Lite | native | grep: projection | grep · weak | 841: "theta" |
| AG Charts | native | grep: angle-categorypolar axes | grep · weak | ag-charts-types/dist/types/src/chart/radiusAxisOptions.d.ts:11 |
| amCharts 5 | native | RadarChart | types · strong | @amcharts/amcharts5/.internal/charts/radar/RadarChart.d.ts:72 |
| Google Charts | none | — | absence · absence | — |
| uPlot | none | — | absence · absence | — |
| TradingView Lightweight Charts | unknown | — | conflict · unknown | — |
| MUI X Charts | native | grep: rotationAxis | grep · weak | @mui/x-charts/index.d.ts:34 |
| Mermaid (chart-ish diagrams only) | unknown | — | conflict · unknown | — |
| AntV G2 | native | grep: coordinate | grep · weak | @antv/g2/lib/index.d.ts:52 |