Highcharts Demo

author(s): Torstein Hønsi

HTML

<script src="https://code.highcharts.com/highcharts.js"></script>
<script src="https://code.highcharts.com/modules/exporting.js"></script>

<div id="container" style="min-width: 310px; height: 400px; margin: 0 auto"></div>

JavaScript

Highcharts.chart('container', {
    chart: {
        type: 'area'
    },
    title: {
        text: 'US and USSR nuclear stockpiles'
    },
    xAxis: {
        type: 'datetime',
        labels: {
	        format: '{value:%H:%m %p}',
       }
    },
    yAxis: {
        title: {
            text: 'Nuclear weapon states'
        }
    },
    series: [{
        name: 'USA',
        data: [
		        [Date.parse("2018/03/17 01:52"), 266], 
            [Date.parse("2018/03/17 02:12"), 375], 
            [Date.parse("2018/03/17 03:32"), 670],
	          [Date.parse("2018/03/17 04:02"), 701],
	          [Date.parse("2018/03/17 05:52"), 852],
       	]
    }]
});