javascript - X axis title cutting off -
I tried to play with SVG dimensions but the text is cutting the code for X-X: < .atr ("class", "x axis")
.attr ("transform", "translate (0," + " Height + ").) .Append (" text ") .attr (" x ", width / 2) .attr (" y ", margin.bottom + 5). Style ("text-anchor", "medium"). Style ("font size", "150%"). Text ("Age in years");
How can I fix this?
Define the margin down variable
but that does not work.
When I added +10 in this line + .attr ("height", height + margin.top + margin.bottom + 10) .
It's just displaying well.
Comments
Post a Comment