Chart (canchart)
Primary APIs
| API | Behavior |
|---|---|
createCanvasController(options) | Creates a chart-only controller with shared document and history methods. |
controller.dispatch(command) | Runs a typed canchart command and records it in shared history. |
Chart | React chart surface backed by the canvas renderer. |
renderChartToCanvas(ctx, spec, options) | Draws a chart spec to a canvas context. |
createChartGeometry(normalizedChart, options?) | Builds drawable bars, lines, radial slices, labels, and hit regions. |
createChartDataTable(spec) | Returns rows for accessible data review. |
chartDataTableToCsv(rows) | Serializes normalized rows to CSV. |