Add custom data attributes or custom classes to each point in plotly SVG

Hello,

I’m working on SVG images from plotly graph and I’m looking for a way to add custom classes/attributes to each plot in the graph SVG format to interact with our own javascript on my website. Is there a way how I can do this? I’m not using plotly.js here as this is an SVG image. Any input is highly appreciated.

Thanks