@iekaa,
You can use labelFormatter to customize labels to be displayed on axis. Please take a look at this jsfiddle.
If this doesn’t fulfill your requirements kindly share a pictorial representation so that we can understand your requirements better and help you out.
—
Vishwas R
Team CanvasJS