plotly / react-plotly.js

A plotly.js React component from Plotly 📈
MIT License
1.01k stars 136 forks source link

Trigger click on treemap tile #267

Open MaxOrelus opened 2 years ago

MaxOrelus commented 2 years ago

https://plotly.com/javascript/treemaps/

I have a treemap that has nested leaves.

When the treemap initializes, it starts by showing all the categories at the root, but I have a dropdown selector component outside of the chart that I want to be able to select a category through and it will have the ability to update the chart to simulate what would essentially be a mouse click on the category tile, which would zoom into that specific category and it's nested protocols?

Is there a simple way to indicate to plotly to pan to that category based on the category selected from a separate component?