title: Plotly Dash dropdown menu python
body: <p>I would like to add a dropdown menu to show only one figure. I mean, if I select fig the dash must show me only the fig and if I select fig2 the dash must show me the fig 2. Is it possible?
  My code is an example, I have more than 500 figs.</p>
  
  <pre><code>import dash
  import dash_core_components as dcc
  import dash_html_components as html
  import plotly.graph_objects as go # or plotly.express as px
  
  fig = go.Figure()
  fig2 = go.Figure()
  fig.add_trace(go.Scatter(y=[4, 2, 1], mode="lines"))
  fig2.add_trace(go.Bar(y=[2, 1, 3]))
  
  figs = [fig, fig2]
  div = []
  for item in figs:
      div.append(dcc.Graph(figure=item))
  
  app = dash.Dash()
  app.layout = html.Div(div)
  """
  add a dropdown to show only one fig
  """
  
  
  app.run_server(debug=True, use_reloader=False)
  </code></pre>