Highcharts test tool

by Torstein Hønsi

HTML

<script src="http://code.highcharts.com/highcharts.js"></script>
<script src="http://code.highcharts.com/highcharts-more.js"></script>
<script src="http://code.highcharts.com/modules/exporting.js"></script>

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

JavaScript

$(function () {
    $.getJSON('http://www.highcharts.com/samples/data/jsonp.php?filename=range.json&callback=?', function(data) {
    
        window.chart = new Highcharts.Chart({
        
            chart: {
                renderTo: 'container',
                type: 'arearange'
            },
            
            title: {
                text: 'Temperature variation by day'
            },
        
            xAxis: {
                type: 'datetime'
            },
            
            yAxis: {
                title: {
                    text: null
                }
            },
        
            tooltip: {
                crosshairs: true,
                shared: true,
                valueSuffix: '°C'
            },
            
            plotOptions: {
                arearange: {
                    marker: {
                        enabled: true
                    }
                }
            },
            
            legend: {
                enabled: false
            },
        
            series: [{
                name: 'Temperatures',
                data: data
            }]
        
        });
    });
    
});