Highcharts Demo

author(s): Torstein Hønsi

by supertrue

HTML

<script src="http://code.highcharts.com/highcharts.js"></script>

<div id="container" style="height: 400px"></div>

JavaScript

$(function () {
    var chart = new Highcharts.Chart({
        chart: {
            renderTo: 'container',
            type: 'line'
        },
        
        xAxis: {
            type: 'datetime'
            // categories: ['Green', 'Pink']
        },
        
        series: [{
            data: [{
                name: 'Point 1',
                color: '#00FF00',
                x: Date.UTC(1977, 9, 27),
                y: 11
            }, {
                name: 'Point 2',
                color: '#FF00FF',
                x: Date.UTC(1994, 6, 12),
                y: 7
            }, {
                name: 'Point 3',
                color: '#FF00FF',
                x: Date.UTC(2010, 6, 12),
                y: 4
            }]
        }]
    });
});