Skip to main content
Idea

Request for richer metadata in SVG Exports

Related products:Lucidchart
  • September 19, 2025
  • 3 replies
  • 22 views

Forum|alt.badge.img

Hi Lucid,

Perhaps a bit of a specialized use case here, but likely a straightforward enhancement.

I’ve been working on some tools that parse and post-process diagrams in SVG format for use in an interactive web UI. The SVG export capability in Lucid is functional, but the resulting SVG images are built from generic SVG <path/> elements that are otherwise devoid of any attributes or metadata that can tie them back to the corresponding shape information from the Lucid document.

I’d find it highly useful if Lucid attached metadata from shapes as custom XML attributes to generated <path/> elements in SVG output. In particular, it would be nice to have text labels from Lucid shapes passed through as a SVG custom attribute. The Lucid shape ID could also be passed through as an “id” attribute. These attributes would be ignored by standard SVG parsers/renderers, but could be picked up out of the DOM model by custom JavaScript SVG parsers like mine.

Thanks!

Comments

Ambar D
Forum|alt.badge.img+10
  • Lucid community team
  • September 19, 2025

Hi ​@mpeskin, thanks for this feedback!

We encourage anyone else who’s interested in this to upvote this post and share any additional details about your use case or what you’d like to see in this experience.

For more information about how we manage feedback in this community, please take a look at this post:

 


  • February 23, 2026

Hello ​@mpeskin,

I’ve upvoted your post because I agree that this would be a useful feature and I would like to see a feature like this added to a priority list.  Thank you ​@Ambar D for fielding the userbase for more upvotes.

As a short-term solution, I’ve been utilizing the “Add Link → URL” feature that ends up in the svg element as:

<a xlink:href="http://TAG_NAME" target="_blank">
<path .../>
...
...
...
</a>

We then need to run a little svg parser script that takes the links out and converts them to ids - but as a temporary workaround on the smaller-scale - it gets the job done…

Hope this helps 

Chad


Ambar D
Forum|alt.badge.img+10
  • Lucid community team
  • February 24, 2026

Thank you ​@coliver for sharing such a great tip here in this thread!