jQuery Flot - Display accurate values
问题 I notice that jQuery Flot is rounding down the results. But I want to show the actual decimal value for the result when you hover over the peaks and valleys in the tooltip. But not the x or y axis labels, but the graph result itself. So instead of "44", I want "44.05". Is there anything I can do to make that work? Everything I'm seeing is just for the axis labels. 回答1: The tool tip should allow you to do this - have a look at this fiddle http://jsfiddle.net/Rnusy/ var previousPoint = null; $(