Make flot tooltip show floating point for values where appropriate.

At present, the flot tooltip in the UI shows only the integer portion of data values.  This change makes the tooltip switch between floating point and integer format based on whether the value in question is an integer.