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
Describe the bug
I used the same code but hard coded the data values.
const ctx = this.template.querySelector('canvas.barChart').getContext('2d'); Failing line
The chart.js file i used is Chart.min.js from their site and added to our sandbox resources as ChartJs
chart.html (i added id also but no effect)
This gives the error message 'cannot get property getContext on null from chart.js line
if I use class="barChart" then getting another message
Failed to execute 'appendChild' on 'Node': parameter 1 is not of type 'Node'.
Appreciate any help.
The text was updated successfully, but these errors were encountered:
Describe the bug
I used the same code but hard coded the data values.
const ctx = this.template.querySelector('canvas.barChart').getContext('2d'); Failing line
The chart.js file i used is Chart.min.js from their site and added to our sandbox resources as ChartJs
chart.html (i added id also but no effect)
This gives the error message 'cannot get property getContext on null from chart.js line
if I use class="barChart" then getting another message
Failed to execute 'appendChild' on 'Node': parameter 1 is not of type 'Node'.
Appreciate any help.
The text was updated successfully, but these errors were encountered: