Highcharts Demo

author(s): Torstein Hønsi

by p0n0marev

HTML

<script src="http://code.highcharts.com/highcharts.js"></script>
<div id="container" style="height: 400px"></div>

JavaScript

$(function () {
    Highcharts.setOptions({
        global: {
            useUTC: false,

        },
        lang: {
            decimalPoint: ',',
            thousandsSep: '.'
        }
    });

    $('#container').highcharts({

        xAxis: {
            type: 'datetime'
        },
        tooltip: {
            formatter:function(){

                return this.point.series.name + ': <b>' + Highcharts.numberFormat(this.point.options.count,0,',',',') + '</b><br/>' + 'Count: <b>'+Highcharts.numberFormat(this.point.y,1,',','.')+'</b><br/>';
            }
        },

        series: [{
            data: [{
                y: 20009.9,
                count: 20009.9
            }, {
                y: 10009.9,
                count: 20009.9
            }, {
                y: 40009.9,
                count: 20009.9
            }],
            pointStart: Date.UTC(2010, 0, 1),
            pointInterval: 3600 * 1000 // one hour
        }]
    });
});