Valid only for
text attribute contains the text that should be set on the subelement. If the provided string does not contain any newline characters (
'\n'), the text is set directly as the content of the
<text> subelement. Alternatively, if the provided string has multiple lines, each line becomes the content of a
<tspan> child of the
If you need the text to be automatically wrapped inside the
<text> subelement, you should use the
textWrap attribute instead. It can automatically add line breaks into the provided string as necessary, and mark them with newline characters.