Highcharts Demo

author(s): Torstein Hønsi

by sqiudward

HTML

<script src="https://code.jquery.com/jquery-3.1.1.min.js"></script>
<script src="https://code.highcharts.com/stock/highstock.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

var data = [
    [
        1485181800000,
        120.08
    ],
    [
        1485268200000,
        119.97
    ],
    [
        1485354600000,
        121.88
    ],
    [
        1485441000000,
        121.94
    ],
    [
        1485527400000,
        121.95
    ],
    [
        1485786600000,
        121.63
    ],
    [
        1485873000000,
        121.35
    ],
    [
        1485959400000,
        128.75
    ],
    [
        1486045800000,
        128.53
    ],
    [
        1486132200000,
        129.08
    ],
    [
        1486391400000,
        130.29
    ],
    [
        1486477800000,
        131.53
    ],
    [
        1486564200000,
        132.04
    ],
    [
        1486650600000,
        132.42
    ],
    [
        1486737000000,
        132.12
    ],
    [
        1486996200000,
        133.29
    ],
    [
        1487082600000,
        135.02
    ],
    [
        1487169000000,
        135.51
    ],
    [
        1487255400000,
        135.35
    ],
    [
        1487341800000,
        135.72
    ],
    [
        1487687400000,
        136.7
    ],
    [
        1487773800000,
        137.11
    ],
    [
        1487860200000,
        136.53
    ],
    [
        1487946600000,
        136.66
    ],
    [
        1488205800000,
        136.93
    ],
    [
        1488292200000,
        136.99
    ],
    [
        1488378600000,
        139.79
    ],
    [
        1488465000000,
        138.96
    ],
    [
        1488551400000,
        139.78
    ],
    [
        1488810600000,
        139.34
    ],
    [
        1488897000000,
        139.52
    ],
    [
        1488983400000,
        139
    ],
    [
        1489069800000,
        138.68
    ],
    [
        1489156200000,
        139.14
    ],
    [
        1489411800000,
        139.2
    ],
    [
        1489498200000,
        138.99
    ],
    [
        1489584600000,
        140.46
    ],
    [
        1489671000000,
        140.69
    ],
    [
        1489757400000,
        139.99
    ],
...