score:2

the issue seems to be in your import of chart. you are trying to display a bar chart but it has not been imported. you will need to import barelement also. a shorter way to test if your chart is getting rendered or not is to only import the following:

import chart from 'chart.js/auto';

you can refer to the integration section of chart.js docs to understand what could have been missing or here is a sample stackblitz.


Related Query

More Query from same tag