Adding a search input, custom filter, to plotly bubble chart map


I made a bubble chart map that has some pre-defined filters.

What I’d like to do is add a search input box so that users can create their own custom filters. Meaning, users could search for the term “drowned” and the map would only display instances of when “drowned” was contained within the description.

Any help is appreciated!


Did you ever find a solution?


Hey @owenlhjphillips & @timmym123

For search input (textbox or dropdown) you can try a few different options such as using Shiny, or with plotly development version ( devtools::install_github(“ropensci/plotly”) ) Whilst there isn’t a textbox option, dropdowns and buttons are native to plotly.js. Have a look at the the custom control docs for R


1 Like