<head>
  <script src="https://cdn.plot.ly/plotly-latest.min.js"></script>
</head>
<body>
  <div id="graph"></div>
</body>
Plotly.newPlot('graph', [{
  x: [1, 2, 3],
  y: ['B', 'B', 'B']
}], {
  yaxis: {
    range: [0, 5],
    categoryarray: ['A', 'B', 'C', 'D', 'E']
  }
})
Run Pen

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.