You can add data to a chart in many different ways. You could provide data like this:
When calling c2mChart, there are several different config items that you can provide:
The source or target element can technically be any visible HTML or SVG element. That said, the most common elements are CANVAS, SVG, DIV, and IMG.
📄️ Developer integration
Using c2mChart to sonify a static chart is already powerful, but you can also sonify dynamic charts.
When you invoke Chart2Music, it will return 2 items:
If you're using Recharts, one of the most popular React charting libraries, we already have a CodePen example that integrates Recharts and Chart2Music: