fix joystick function and other parts to work with timescale and format xAxis