Highcharts test tool

by ttbsoftware

HTML

<script src="https://rawgit.com/highslide-software/highcharts.com/31e31a65eb170a29e11480e50c8456b54eb0d12c/js/highcharts.src.js"></script>

<div id="container"></div>

CSS

#container {
    min-width: 300px;
    max-width: 800px;
    height: 300px;
    margin: 1em auto;
}

JavaScript

$('#container').highcharts({
    
    chart: {
        zoomType: 'x',
        panning: true,
        panKey: 'shift'
    },
    
    yAxis: {
        max: 160
    },

    xAxis: {
        categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 
            'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
        min: 5
    },

    series: [{
        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]
    }]

});