Draw float or integer values in the y-axis depending on data input

@darrenli