rescaling x and y of linechart