JSFiddle - React, Tailwind, and code Playground
by navindian
HTML
<script src="http://code.highcharts.com/stock/highstock.js"></script>
<script src="http://code.highcharts.com/stock/modules/exporting.js"></script>
<div id="container" style="height: 500px; min-width: 500px"></div>
JavaScript
$(function() {
$.getJSON('http://www.highcharts.com/samples/data/jsonp.php?filename=usdeur.json&callback=?', function(data) {
// Create the chart
window.chart = new Highcharts.StockChart({
chart: {
renderTo: 'container'
},
legend: {
enabled: true,
},
series: [{
name: 'USD to EUR',
data: data,
id: 'dataseries'},
{
type: 'flags',
data: [{
x: 1104586684000,
title: 'A',
},
{
x: 1136122684000,
title: 'B',
},
{
x: 1199194684000,
title: 'C',
},
{
x: 1167658684000,
title: 'D',
},
{
x: 1230817084000,
title: 'E',
},
{
x: 1262353084000,
title: 'F',
},
{
x: 1304899200000,
title: 'G',
}],
onSeries: 'dataseries',
shape: 'circlepin',
width: 16}]
});
});
});