Show tooltips with correct data for steps

Currently, when graph is rendered in steps mode, the data points may get transformed. I say may because there may be two consecutive data points with same values. This fix handles both scenarios and shows the tooltip with correct value.