JSFiddle - React, Tailwind, and code Playground
HTML
<!-- Plotly.js -->
<script src="https://cdn.plot.ly/plotly-latest.min.js"></script>
<body>
<div id="myDiv"><!-- Plotly chart will be drawn inside this DIV --></div>
<script>
JavaScript
var data = [
{
x: ["2013-10-04 22:23:00", "2013-11-04 22:23:00", "2013-12-04 22:23:00"],
y: [1, 3, 6],
type: "scatter"
}
];
var mydiv=document.getElementById('myDiv');
Plotly.newPlot('myDiv', data);