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 for updated legend