Fixed x-axis creation with the function addAxis()