Highcharts test tool

by Jeremy Corson

HTML

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

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

JavaScript

Highcharts.setOptions({
    global: {
        useUTC: false
    }
});

$(document).ready(function() {
    var options = {
        chart: {
            renderTo: 'container',
            zoomType: 'x',
            spacingRight: 20,
            type: 'column'
        },
        title: {
            text: 'Bolus'
        },
        xAxis: {
            title: {
                text: 'Volume'
            },
            type: 'datetime'
        },
        yAxis: {
            title: {
                text: 'Volume Units'
            }
        },
        credits: {
            enabled: false
        },
        
        plotOptions: {
            series: {
                stacking: 'normal'
            }
        },
        series: [{
            name: 'volume',
            data: [[1455812285785,500],[1455912335785,300],[1455912385785,400],[1455912435785,600],[1459912485785,700]]
        },
        {
            name: 'carbs',
            data: [[1455812285785,10],[1455912335785,6],[1455912385785,8],[1455912435785,9],[1459912485785,0]]
        }]
    }

    var chart = new Highcharts.Chart(options);
})