JSFiddle - React, Tailwind, and code Playground
HTML
<script src="https://cdn.plot.ly/plotly-latest.min.js"></script>
<div id="graph"></div>
JavaScript
Plotly.newPlot('graph', [
{ y: [2, 1, 3]},
{ y: [4, 2, 5]},
{ y: [3, 3, 6]},
],
{xaxis: {title: {text: 'axis label'}},
legend: {title: {text: 'legend title'},
orientation: 'h'}
}
)