If the x-axis label is long, it is getting overlapper on the next label like this. How do I set a width to it so that it appears as in the snapshot below?
x-axis code:
var xAxis = d3.svg.axis()
.scale(x)
.orient("bottom")
.tickSize(10,10);
If the x-axis label is long, it is getting overlapper on the next label like this. How do I set a width to it so that it appears as in the snapshot below?
x-axis code:
var xAxis = d3.svg.axis()
.scale(x)
.orient("bottom")
.tickSize(10,10);
I couldn't do the exact thing what's there in the image.
But i found this from this link.
Wrapping the x
axis labels using a custom function.
Hope this helps. :)