title: Is it possible to build a plotly graph which has a dropdown menu that filters a dataframe?
body: <p>I have a dataframe that looks like this:</p>
  
  <pre><code>date, sub_id, stat_type, value
  jan 1, 1233, link_clicks, 12,
  feb 1, 1233, link_clicks, 13,
  jan 1, 3424, link_clicks, 23,
  feb 1, 3424, link_clicks, 34,
  ..., 
  jan 1, 1233, transaction, 45, 
  feb 1, 1233, transaction, 50,
  ..., 
  jan 1, 1233, customer_signups, 9, 
  feb 1, 1233, customer_signups, 8
  ...
  etc...
  </code></pre>
  
  <p>I would like to build a plotly graph which contains a dropdown menu that filters the dataframe by <code>stat_type</code> before graphing the values. </p>
  
  <p>EG if you select <code>"link_clicks"</code> from the dropdown menu it would graph the following values:</p>
  
  <pre><code>date, sub_id, stat_type, value
  jan 1, 1233, link_clicks, 12,
  feb 1, 1233, link_clicks, 13,
  jan 1, 3424, link_clicks, 23,
  feb 1, 3424, link_clicks, 34,
  etc...
  </code></pre>
  
  <p>Graphing the filter dataframes using plotly, but there is little documentation of using a dropdown menu as a filter on an individual graph.</p>
  
  <p>I know that plotly is extremely flexible and I am wondering if anyone has built an interactive graph which contains a dropdown menu which acts as a filter on the DF.</p>