How to show 2 decimals in Chart JS?

0
Hi guys   I have a graph with some decimals, i see that the graph has not an option to show decimals (for y as it has). How can I change the graph to show precise the decimals as it is (for example 1563.23 instead of 15624)?   thnx
asked
2 answers
0

It will only round on two decimals if you use the round action. So yValue = round($someDecimal,2)

Regards,

Ronald

 

answered
1

Make sure your yValue in the ChartJSDatapoint entity is of type decimal. It should render it without a problem. I hope this answers your question. See example below.

 

answered