How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Search bar for Plotly Legends (No Dash)

calendar_today October 31, 2026 person @sterlingbutters Sterling Butters domain plotly

I just had Claude do it for me: “”” plotly_legend_search ==================== Adds a search box to the legend of a Plotly figure exported to HTML. No Dash, no server: the search is a small piece of JavaScript injected through Plotly’s post_script hook, so it ships inside the HTML file you distribute. Quick start ———– import plotly.graph_objects as go from plotly_legend_search import legend_search fig = go.Figure(…) legend_search(fig) # tags the figure in place (also returns it) fig.write_html(“plot.html”) # search box is baked in fig.show() # also works with HTML-based renderers O

open_in_new Read original post