chartjs-plugin-chart2music 0.0.7 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/plugin.js CHANGED
@@ -373,6 +373,9 @@ var chartjs2music = (function (c2mChart) {
373
373
  return;
374
374
  }
375
375
  const ref = chart.config.options?.plugins?.chartjs2music?.internal.c2m;
376
+ if (!ref) {
377
+ return;
378
+ }
376
379
  const groups = ref._groups.slice(0);
377
380
  if (ref._options.stack) {
378
381
  groups.shift();
package/dist/plugin.mjs CHANGED
@@ -372,6 +372,9 @@ const plugin = {
372
372
  return;
373
373
  }
374
374
  const ref = chart.config.options?.plugins?.chartjs2music?.internal.c2m;
375
+ if (!ref) {
376
+ return;
377
+ }
375
378
  const groups = ref._groups.slice(0);
376
379
  if (ref._options.stack) {
377
380
  groups.shift();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chartjs-plugin-chart2music",
3
- "version": "0.0.7",
3
+ "version": "0.1.1",
4
4
  "type": "module",
5
5
  "description": "Chart.js plugin for Chart2Music. Turns chart.js charts into music so the blind can hear data.",
6
6
  "main": "dist/plugin.js",