title: How to fix width of bar in plotly R
body: <p>Plotly is one of the most useful plotting packages in R, but I am facing a very basic issue with it.</p>
  
  <p>When I am drawing a barplot , it looks ok in a small screen, but as soon as I resize the window , it covers the whole window, making it ugly.</p>
  
  <p>As my requirement is dynamic , number of bars on the plot changes, but I want to keep the bar width look decent.</p>
  
  <p><a href="https://i.stack.imgur.com/smBc5.png" rel="noreferrer"><img src="https://i.stack.imgur.com/smBc5.png" alt="enter image description here"></a></p>
  
  <p>But when it gets resized </p>
  
  <p>the code which I am using to plot the barplot is simple and I hope need not be explained . The width option doesnt make any impact on the graph.</p>
  
  <p>Am I missing anything?</p>
  
  <pre><code> ds &lt;- as.data.frame(matrix(c('some_name',2300),nrow = 1,ncol=2))
  colnames(ds) &lt;- c('name','value')
  
  plot_ly(ds,x=name,y=value,type='bar') %&gt;% layout(width = 0.1)
  </code></pre>