You shouldn't try to adjust the input x values, that's just how computers store numbers.
To show rounded or floored numbers in the tooltip, you'll need to drop the footerFormat
, headerFormat
, and pointFormat
and take complete control of the tooltip using the formatter option. Something like this:
formatter: function() {
var s = '<b>'+ Highcharts.numberFormat(this.x,1) +'</b>';
$.each(this.points, function(i, point) {
s += '<br/>'+ point.series.name +': '+
Highcharts.numberFormat(this.point.y,4);
});
return s;
}
Should get you want you need. Fiddle here.