@lujakob,
The interval at which axis labels are shown is auto-calculated based on the axis range. You can set the x-axis interval to 1 to show the x-axis labels at whole numbers.
Please check this updated StackBlitz for a working example of the same.
—
Thangaraj Raman
Team CanvasJS