Legend position takes into account margin
Add a SVG element as root

Fix #25