How to display a different graph depending on dropdown input?

Hi everyone,

I started with Dash today and I was wondering how I display a different Sankey diagram depending on the dropdown input. I have three different diagrams.

Hi @JelleHeijne97, welcome,

You would have to create a callback that would take as input the dropdown and as output either a div where you would generate a full graph each time. or you could have a graph as output where you update the figure from within the callback.

I’m sure in the documentation and or the repositories there’s an example of this.

Hi @JelleHeijne97, @adamschroeder has a lot of useful videos (not only) for beginners. Take a look at this for example:

1 Like