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
Should display a stacked timeseries chart with 1 or more datasets.
Current Behavior
Calls to Chart.update() fail resulting in Uncaught TypeError: Cannot read property 'length' of undefined
Full Trace:
Uncaught TypeError: Cannot read property 'length' of undefined
at updateStacks (chart.js:2975)
at BarController.parse (chart.js:3182)
at BarController._resyncElements (chart.js:3491)
at BarController.buildOrUpdateElements (chart.js:3137)
at Chart.update (chart.js:6614)
I think its because the stacks are build when parsing and are stored in the parsed data.
Not sure if we can support stacked charts with gained speed compared to parsing: true.
Expected Behavior
Should display a stacked timeseries chart with 1 or more datasets.
Current Behavior
Calls to
Chart.update()
fail resulting inUncaught TypeError: Cannot read property 'length' of undefined
Full Trace:
Steps to Reproduce
Can be reproduced at https://www.chartjs.org/docs/latest/samples/scales/time-line.html
Steps:
stacked: true
toscales.y
label: 'Dataset with point data'
by addingparsing: false
Context
Trying to improve performance for timeseries data with large sample counts - disabling parsing breaks the chart.
Environment
Edit: Updated reproduction steps.
The text was updated successfully, but these errors were encountered: