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
As mentioned here, I get the same error Cannot read properties of null (reading 'addEventListener') when using this plugin with react-chartjs-2. When rendering a tree type graph, at some point the chart.canvas reference becomes null thus throwing the error in createProxyAndListen from ChartJS.
If I add redraw={true} to the react-chartjs-2Chart wrapper, and force it to recreate the graph every time, it does seem to work, but still throws the error 2 times.
I am not sure if I'm missing something else or where exactly the problem originates.
To Reproduce
Use react-chartjs-2's Chart and create a tree type chart.
Expected behavior
I expect the tree to be rendered the first time around.
As mentioned here, I get the same error
Cannot read properties of null (reading 'addEventListener')
when using this plugin withreact-chartjs-2
. When rendering atree
type graph, at some point thechart.canvas
reference becomesnull
thus throwing the error increateProxyAndListen
fromChartJS
.If I add
redraw={true}
to thereact-chartjs-2
Chart
wrapper, and force it to recreate the graph every time, it does seem to work, but still throws the error 2 times.I am not sure if I'm missing something else or where exactly the problem originates.
To Reproduce
Use
react-chartjs-2
's Chart and create atree
type chart.Expected behavior
I expect the tree to be rendered the first time around.
Context
The text was updated successfully, but these errors were encountered: