Skip to content
Advertisement

How to properly use formatting with chartjs?

I am trying to use formatting in Chart.js. I’ve configured the imports correctly, but it still doesn’t display what I want

It doesn’t work on my local pc. I uploaded the same code to codepen and it didn’t work either. You can verify it here

JavaScript

Any ideas what am I doing wrong? Thanks

Advertisement

Answer

As described here, you need to register the plugin:

JavaScript

Live example:

JavaScript
JavaScript
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement