Making a graph appear and disappear upon markdown

Hi,

I am trying to have multiple graphs showing up and hiding upong marking it down with a checkbox or dropdown markdown, but I can only manage to have an empty dcc.Graph template and add the info to plot, while I want to completely hide the template too. I have seen it done with a dcc.Interval, but Id like to do it in a static plot. Is there any way to do that?

Thanks!

What I do is wrap the dcc.Graph around a html.Div component and then hide/show the Div using itโ€™s style component. You could change the style of the graph via a callback with inputs being either a dropdown or checkbox

2 Likes

Yes! That did the trick! Thank you!

1 Like