Jquery document.ready function is bit different than in Drupal 6.
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;
},
labelWidth:80
}