@franzda,
The range of an axis (minimum and maximum) depends on the range of data being attached to that axis and not just based on x-values of first and last dataPoints. If you like to match the range of both primary and secondary axes, you can do so by setting minimum and maximum as per your requirements. Please take a look at this updated sample.
—
Shashi Ranjan
Team CanvasJS