You are here

Jquery Flot graph not showing up when using decimal points

If there is a case that your jquery flot graph is only displaying if you dont have decimal points than you might need to add tickformatter to solve the issue.

In your Y-axis option add the tickformatter option as shown below:

yaxisval = {

max: maxval,

min: 0,

position: position,

tickFormatter: function (v) {

return (v.toFixed(0));

//return roundNumber(v, 2) + " " +unitsval;





Website fix request form

If you have problems with the website based on Drupal or WordPress, please feel free to contact us: