title: Can we plot percentage with Plot_ly
body: <p>is there a way to plot percentages using plot_ly. For example, the below is used to plot the count of cut from diamonds dataset,</p>
  
  <pre><code>plot_ly(diamonds, x = ~cut)
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/48gPX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/48gPX.png" alt="enter image description here"></a></p>
  
  <p>But i tried to plot the percentage for cut. For example I need the percentage of "Good" to the total count. Is there a way to get it?</p>