Chartjs-ChartJs is not working in angular 4 with no errors

2👍

I got that the thread is somewhat outdated, however to spare other the nervs i’ve spend on the matter, i’ll provide this:

The canvas (- now -) has to be nested within a display:block-styled Element

Since i use angular (CLI) 8.0.3 and Chart.js v2.8.0, this might not solve your problem either.

Nevertheless i also ran into serveral other problems you might consider at this point:
almost every other snippet i’ve found so far is kinda obsolete.
Check your @ViewChild Annotation as well as your Rx-imports, if they’r up to date (even if you won’t got any compile errors)

Leave a comment