If I have e.g. one dataset in the beginning and add another dataset to the data object by assigning the full object (in accordance to the documentation) the following error is thrown:
Uncaught (in promise) TypeError: Cannot set properties of undefined (setting 'textContent')
at e.value (AxisChart.js:426:20)
at e.value (BaseChart.js:241:8)
at base.svelte:59:54
at ifChart (base.svelte:41:16)
at $$self.$$.update (base.svelte:60:6)
at update (index.mjs:1089:12)
at flush (index.mjs:1060:13)
The issue only appears if the initial data holds 1 or less datasets. If changing the number of datasets from 2 to 3 no error is thrown, but the third line is not updated like the initial 2 datasets.
If I have e.g. one dataset in the beginning and add another dataset to the data object by assigning the full object (in accordance to the documentation) the following error is thrown:
The issue only appears if the initial data holds 1 or less datasets. If changing the number of datasets from 2 to 3 no error is thrown, but the third line is not updated like the initial 2 datasets.
Code to replicate: