added embedding of legend info in SVG