As suggested by @Transistor, we can achieve this by adding renderer.labels.template properties to the axis configuration
renderer.labels.template