BusinessOptics / dash_interactive_graphviz

An interactive graphviz viewer for Dash
MIT License
37 stars 8 forks source link

Added support for multiple instances in the same view #21

Open DeKi90 opened 2 years ago

DeKi90 commented 2 years ago

I had been having issues with multiple instances of your really neat component in the same app, because the refence by class would always only update one graph my app with multiple graphs side by side wouldn't render one of them.

The fix is to define an ID for the graph element in each component and pass that to d3.select.