Mohammad Yasin Noori

Results 24 comments of Mohammad Yasin Noori

Use the data label plugin.

First add the script file then add these lines of code to your optionsRaw in Controller: 'plugins' => [ 'datalabels' => [ 'borderColor' => 'white', 'borderRadius' => 25, 'borderWidth' =>...

This is because of the compatibility issue. Put this version of chart js

Are you working with Ajax Call?

Also, add your code snippet to better communicate

change the labels array inside plugins to datalabels AND also if you are trying to set font-size to datalabels use "font.size" instead of "FontSize".

The third error you faced is because of the Hover attribute try to remove it and test it again or try to work it in events. Try to remove any...

a tiny issue when you open optionsRaw like a json keep all the json braces everywhere inside the optionsRaw function but if you treat to use it like array keep...

Check for the anchor (alignment) and the colors if there is not any error in console.

Any error in your browser`s console?