added a function in the tooltip to display values on the fly
data style updated