title: Pyqtgraph horizontal bar chart
body: <p>I am able to create a vertical bar chart using following code:</p>
  <pre><code>import pyqtgraph as pg
  from pyqtgraph.Qt import QtCore, QtGui
  
  window = pg.plot()
  
  y1 = [5, 5, 7, 10, 3, 8, 9, 1, 6, 2]
  x = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
  bargraph = pg.BarGraphItem(x=x, height=y1, width=0.6)
  window.addItem(bargraph)
  </code></pre>
  <p><strong>Result:</strong></p>
  <p><a href="https://i.stack.imgur.com/nF1sh.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/nF1sh.png" alt="enter image description here" /></a></p>
  <p>But now i need to plot a horizontal bar chart:</p>
  <p><a href="https://i.stack.imgur.com/z9vq6.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/z9vq6.png" alt="enter image description here" /></a></p>
  <p>How can i do this using <code>pyqtgraph</code>?</p>