Black Lives Matter. Please consider donating to Campaign Zero's mission of ending police violence in America.
https://www.joincampaignzero.org

How to get changes to legend?

I have an event handler, ‘plotly_relayout’, for changes to the chart title or axis labels but I can’t find any info about event handlers for changes to the legend text. So, how can I capture changes to the legend?

Its the same event handler plotly_relayout. Check for the graphDiv.data.name for updated legend

plotly_relayout does not trigger when you change the name of the legend but I found out that plotly_restyle does

Ah yes. Sorry, for that. So, your problem fixed now

Np. Yup, I’m all good. Now do you know anything about how to resolve this? How to fill the space under an area graph below 0