I’ve added a custom Legend to a plotly.js chart. I add it after calling Plotly.plot by grabbing a reference to the svg DOM nodes within the plot container and appending a child to the plotly svg under the “svg-container”, in the 2nd “main-svg” within the “infolayer” group (those are the class names in quotes), which is where the the normal legend would go.
Everything seems to work well so far, except that this custom legend is not included in the downloaded image file when I use the built in “Download plot as a png” menu item from the menu bar.
Is there a way I can have my custom legend svg content included up by the function that generates this image file?