title: Plotly ggplot stacked bar chart disappear when legend is clicked
body: <p>I'm not sure why but my stacked bar chart disappears instead of falling to the axis when the legend is clicked. I've attached a screenshot of the example that I copied from the plotly website and the code are as follows:</p>
  
  <pre><code>library(plotly)
  
  DF &lt;- read.table(text="Rank F1     F2     F3
  1    500    250    50
  2    400    100    30
  3    300    155    100
  4    200    90     10", header=TRUE)
  
  library(reshape2)
  DF1 &lt;- melt(DF, id.var="Rank")
  
  p &lt;- ggplot(DF1, aes(x = Rank, y = value, fill = variable)) +
    geom_bar(stat = "identity")
  
  p &lt;- ggplotly(p)
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/flPHs.png" rel="nofollow noreferrer">Stacked Bar Chart disappears when legend is clicked</a></p>
  
  <p>Can anyone assist me with this?</p>