Thanks for the excellent library. If generating SVGs, my labels are not centred. Perhaps due to my browser, or font, or ... However, a better way to center labels is to apply the text-anchor: middle; property to the SVG node (with as position the center of the box). This way, the labels are always centered, even if fonts differ a bit.
Thanks for the excellent library. If generating SVGs, my labels are not centred. Perhaps due to my browser, or font, or ... However, a better way to center labels is to apply the text-anchor: middle; property to the SVG node (with as position the center of the box). This way, the labels are always centered, even if fonts differ a bit.