d3-annotate
d3-annotate copied to clipboard
use `.html` instead of `.text` ?
Could include <tspan>'s for styling - side effects/downsides?
Might break on safari:
SVG elements and other non-HTML elements do not support the innerHTML property, and thus are incompatible with selection.html. Consider using XMLSerializer to convert a DOM subtree to text. See also the innersvg polyfill, which provides a shim to support the innerHTML property on SVG elements.
https://github.com/d3/d3-selection/blob/master/README.md#selection_html