Update OnLegendStyle.js

truncating decimals of values more than 100