Open danicahelb opened 6 months ago
This is not straightforward. One technical challenge is that the legend is not rendered as SVG, which I would consider a requirement for it being exported. Another is that the export button is part of the plot component, and does not know about the legend, so we might need to refactor things a little bit.
The other challenge is that we would have to decide how the legend is included in the export. Some options to consider are (in order from easy to hard):
I think option 2 would be ideal, and I would estimate that would take 1-2 weeks.
This came up in our ui-infra
scrum and we decided this needs further discussion.
@steve-fischer-200 and @bobular suggest that ONE file is likely too much work
user will be editing the SVG anyway
So we provide two files: plot and legend
This assumes we can get SVG from our legend div relatively easily. (can we @dmfalke ?)
When you export a plot with an overlay, the legend should be included in the exported plot. Currently it is not, making the exported plot useless