<head>
<script src="https://cdn.plot.ly/plotly-latest.min.js"></script>
</head>
<body>
<div id="graph"></div>
</body>
Plotly.newPlot('graph', [{
x: ['2018-12-13 13:03:00', '2018-12-13 13:04:00'],
y: [1, 2]
}])
Plotly.addTraces('graph', [{
x: ['2018-12-13 13:03:38'],
y: ['30'],
type: 'bar',
hoverinfo: 'text',
marker: {
color: 'red',
},
base: 10,
width: 100
}])
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.