0

I need to have some text on the bottom of a svg. I want the text 0px from the bottom. I couldn't find a solution in the docs.

1 Answers1

0

I came up with this solution:

elm.y(height - elm.bbox().height);
Zoe
  • 27,060
  • 21
  • 118
  • 148
  • You can also go `text.attr(y, draw.height())`. This will move the baseline of the text to the bottom. Please note that it can happen that stuff below the baseline is not visible then – Fuzzyma Feb 15 '18 at 11:20