Highcharts Demo

author(s): Torstein Hønsi

by Fusher

HTML

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

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

JavaScript

$(function () {
    var chart = new Highcharts.Chart({
        chart: {
            renderTo: 'container'
        },
        
        tooltip: {
            formatter: function() {
                console.log(this.x);
                return Highcharts.dateFormat('%e. %b %Y, %H:00', this.x) +': '+ this.y +' F';
            }
        },
        xAxis: {
            type:'datetime'
        },
        
        series: [{
            pointStart: Date.UTC(2012,11,1),
            pointInterval: 1000 * 3600,
            data: [29.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4]        
        }]
    });
});