title: Plotly custom hover text in barplot from R
body: <p>I want have a stack barplot made in ggplot2 and Im applying the ggplotly() command to transform it into a interactive plotly graphic.</p>
  
  <p>The issue now is that I want the plot to display on hover each value depending on the ITEM.</p>
  
  <p>Here is what I mean...</p>
  
  <p><a href="https://i.stack.imgur.com/Cw4pV.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Cw4pV.png" alt="enter image description here"></a></p>
  
  <p>The plot is displaying a cumulative value for each of the items, so for example the green bar legend is displaying the red bar(because it comes before) PLUS the green bar value itself.</p>
  
  <p>I want each legend to display their own value based on the ITEM.</p>
  
  <p>Here is the DF:</p>
  
  <pre><code>&gt; plotlydata
    Fecha Item  Suma
  1 05/16  BAB 20540
  2 05/16  BZO  1000
  3 05/16  CLZ  1400
  4 05/16  CMS 15000
  5 07/16  BAB   400
  </code></pre>
  
  <p>So green bar instead of displaying 21540 (sum of previous 20540 and the own 1000) would display its own value of 1000.</p>
  
  <p>If you get what I mean. Is there any way of doing this?</p>
  
  <p>Dont want plotly to display the cummulative values.</p>