Public API for the MAIDR AnyChart adapter.
Provides bindAnyChart / anyChartToMaidr for single charts and bindAnyCharts / anyChartsToMaidr for grouping multiple charts into one multi-panel MAIDR figure.
AnyChart must be loaded separately – this module does not bundle the AnyChart library. Call these functions after the chart has been drawn so that series data and the SVG container are available.
import { bindAnyChart, bindAnyCharts } from 'maidr/anychart';const chart = anychart.bar([4, 2, 7, 1]);chart.container('container').draw();// One-liner: extracts data, sets maidr-data attribute, fires event.bindAnyChart(chart);// Multi-panel: group several charts into one accessible figure.bindAnyCharts([[chartA, chartB], [chartC, chartD]], { title: 'Dashboard' }); Copy
import { bindAnyChart, bindAnyCharts } from 'maidr/anychart';const chart = anychart.bar([4, 2, 7, 1]);chart.container('container').draw();// One-liner: extracts data, sets maidr-data attribute, fires event.bindAnyChart(chart);// Multi-panel: group several charts into one accessible figure.bindAnyCharts([[chartA, chartB], [chartC, chartD]], { title: 'Dashboard' });
Public API for the MAIDR AnyChart adapter.
Provides bindAnyChart / anyChartToMaidr for single charts and bindAnyCharts / anyChartsToMaidr for grouping multiple charts into one multi-panel MAIDR figure.
Remarks
AnyChart must be loaded separately – this module does not bundle the AnyChart library. Call these functions after the chart has been drawn so that series data and the SVG container are available.
Example