xaxis scale change dynamically