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

Popular posts from this blog

python - how we can use ajax() in views.py in django? -

matlab - Using loops to get multiple values into a cell -

python - Sequence Pattern recognition with Pybrain -