Highcharts Demo

author(s): Torstein Hønsi

by Chitkala More

HTML

<script src="https://code.highcharts.com/stock/highstock.js"></script>
<script src="https://code.highcharts.com/stock/modules/data.js"></script>
<script src="https://code.highcharts.com/stock/modules/exporting.js"></script>
<script src="https://code.highcharts.com/stock/modules/export-data.js"></script>

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

JavaScript

/* Highcharts.getJSON('https://www.highcharts.com/samples/data/aapl-c.json', function (data) { */
    // Create the chart
  var data=[    
    [
        1503927000000,
        30
    ],
    [
        1504013400000,
        40
    ],
    [
        1504099800000,
        60
    ],
    [
        1504186200000,
        64
    ],
    [
        1504272600000,
       70
    ],
    [
        1504618200000,
        162.08
    ],
    [
        1504704600000,
        161.91
    ],
    [
        1504791000000,
        161.26
    ],
    [
        1504877400000,
        158.63
    ],
    [
        1505136600000,
        161.5
    ],
    [
        1505223000000,
        160.86
    ],
    [
        1505309400000,
        159.65
    ],
    [
        1505395800000,
        158.28
    ],
    [
        1505482200000,
        159.88
    ],
    [
        1505741400000,
        158.67
    ],
    [
        1505827800000,
        158.73
    ],
    [
        1505914200000,
        156.07
    ],
    [
        1506000600000,
        153.39
    ],
    [
        1506087000000,
        151.89
    ],
    [
        1506346200000,
        150.55
    ],
    [
        1506432600000,
        153.14
    ],
    [
        1506519000000,
        154.23
    ],
    [
        1506605400000,
        153.28
    ],
    [
        1506691800000,
        154.12
    ],
    [
        1506951000000,
        153.81
    ],
    [
        1507037400000,
        154.48
    ],
    [
        1507123800000,
        153.48
    ],
    [
        1507210200000,
        155.39
    ],
    [
        1507296600000,
        155.3
    ],
    [
        1507555800000,
        155.84
    ],
    [
        1507642200000,
        155.9
    ],
    [
        1507728600000,
        156.55
    ],
    [
        1507815000000,
        156
    ],
    [
        1507901400000,
        156.99
    ],
    [
        1508160600000,
        159.88
    ],
    [
        1508247000000,
        160.47
    ],
    [
        1508333400000,
        159.76
   ...