Tick chart ticks calculation fix