You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I should be able to add data dinamically to a pie chart with legend positioned on left position
Current Behavior
The issue occurs when the legend is at left position in a pie chart and the data is added dinamically.
The chart disappears and I'm not able to add new data to it.
I suppose the issue is related to the legend requiring to be split in a new column to be responsive.
In the provided example the issue happens adding the 11th element.
Update: I've noticed that removing options.layout.padding or setting an integer this behavior doesn't happen.
Uncaught TypeError: Cannot read property 'height' of undefined
Expected Behavior
I should be able to add data dinamically to a pie chart with legend positioned on left position
Current Behavior
The issue occurs when the legend is at left position in a pie chart and the data is added dinamically.
The chart disappears and I'm not able to add new data to it.
I suppose the issue is related to the legend requiring to be split in a new column to be responsive.
In the provided example the issue happens adding the 11th element.
Update: I've noticed that removing options.layout.padding or setting an integer this behavior doesn't happen.
Uncaught TypeError: Cannot read property 'height' of undefined
Chart.js/src/plugins/plugin.legend.js
Line 420 in be01176
Steps to Reproduce
https://codesandbox.io/s/stoic-kalam-jxuu0?file=/index.html
Environment
The text was updated successfully, but these errors were encountered: