Axis Graphs

How can I compact the axis values? There should be a button to compact because sometimes the axis values ​​are decompacted and the graphs look bad.

0 0 37