linearea (dataset.fill)barbar groupedbar stackedgrouped stacks (several stack ids)horizontal bar (indexAxis y)piedoughnutscatterbubblecombo (mixed dataset types)titlelegendtooltipaxis title, min, max, beginAtZero, gridseries colourv2 title, legend, and xAxes/yAxesradarpolarAreatime scale adaptersplugins.annotation and other pluginsscriptable options and canvas gradientsper-point colour arrays on bars (first colour only)more than two y axes
Compare / Convert
Paste a chart. Get the spec.
Chart.js, Recharts, or ECharts. The result is a ChartKit spec after validate() and repair(), plus a warning for each unmapped key. Those three libraries load on this page only. @chartkitdev/convert is unpublished.
detected · Recharts
18 lines · runs in your browser, nothing is uploaded
● valid
{
"version": "1",
"type": "combo",
"title": "Seats",
"data": [
{
"cat": "Jan",
"new_seats": 40,
"expansion": 12,
"goal": 48
},
{
"cat": "Feb",
"new_seats": 36,
"expansion": 18,
"goal": 50
},
{
"cat": "Mar",
"new_seats": 44,
"expansion": 15,
"goal": 52
},
{
"cat": "Apr",
"new_seats": 51,
"expansion": 20,
"goal": 55
}
],
"encoding": {
"x": {
"field": "cat",
"title": "month"
},
"y": [
{
"field": "new_seats",
"title": "New seats",
"stack": "seats",
"mark": "bar",
"color": "#3b6fd8"
},
{
"field": "expansion",
"title": "Expansion",
"stack": "seats",
"mark": "bar",
"color": "#8eadd4"
},
{
"field": "goal",
"title": "Goal",
"mark": "line",
"color": "#c4554a"
}
]
},
"a11y": {
"alt": "Seats. New seats is plotted by month."
},
"mark": {
"curve": "monotone"
},
"annotations": [
{
"type": "rule",
"axis": "y",
"value": 60,
"dash": "dashed",
"label": "Cap",
"labelPosition": "center"
}
],
"legend": {
"position": "bottom"
},
"tooltip": {
"show": true
},
"axes": {
"x": {
"grid": "dashed"
},
"y": {
"grid": "dashed"
}
}
}No warnings. Every key the converter read was mapped.
Both
Same data, both renderers.
The vendor library draws the paste. ChartKit draws the converted spec. Vendor code loads on this page only.
Coverage
What maps, what warns.
These lists are what @chartkitdev/convert actually maps. A warning code is CK81xx, not a draft CV code.
LineChart lineAreaChart areaBarChart grouped and stacked (stackId)horizontal bars (layout vertical)Pie and Pie innerRadius as donutScatterChartbubble when ZAxis is setComposedChart combostacked bars beside an unstacked lineLegend, Tooltip, CartesianGridXAxis and YAxis labelsReferenceLine and ReferenceAreacurve monotone, linear, and stepRadialBarChartBrush, ErrorBar, and LabelListcustom shapes and render propsJSX spreads and unbound identifiers
linearea (areaStyle)barbar groupedbar stackedstack groups, including a stack beside an unstacked seriespiedonut (radius array)scatterbubble (symbolSize or a third data value)combo (mixed series types)title, legend, tooltipxAxis.name, yAxis.name, min, maxmarkLine and markAreasmoothheatmap, gauge, candlestick, radar, graph, and map seriesdataset.encode beyond a category axis plus series.datavisualMap, dataZoom, and toolboxsymbolSize functions