Dojo charts -0.00 on y-axis issue and fix
I have found that sometimes Dojo charts displays the -0.00 on the y-axis.
The workaround is to pass your own axis label formatting function.
var yAxisLblFunc = function(text, value, precision){ var n = Number(text); return n.toFixed(2); }; chart.addAxis("y", { // ... other setup params labelFunc: yAxisLblFunc }); |
This way you can format the label any way you like.
See this jsfiddle for an example.
Comments are closed, but trackbacks and pingbacks are open.