Reputation: 1175
I would like to put meter square (m2) in chart js y axis.
I have the following function :
var floorOptions = {
animation: true,
scaleLabel:
function(label){return label.value.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",") + ' m<sup>2</sup>';}
};
it doesn't work. Can someone please assist? Thx
Upvotes: 2
Views: 1637