Decimal places for yaxis on line chart

how can I specify that yaxis should no decimal places?

Figured out how to do it by using template function. Thanks!