Sparkline for Orders

by Jason Crowther

HTML

<script src="https://code.highcharts.com/highcharts.js"></script>
<script src="https://code.highcharts.com/modules/exporting.js"></script>
<div id="container" style="min-width: 310px; height: 200px; margin: 0 auto"></div>

JavaScript

$(function () {
    $('#container').highcharts({
        // nothing to see here.
        xAxis: {
            categories: ['10/12', '10/13', '10/14', '10/15', '10/16', '10/17',
                '10/18']
        },
        yAxis: {
            title: {
                text: 'Total Orders'
            },
            plotLines: [{
                value: 0,
                width: 1,
                color: '#808080'
            }]
        },
        tooltip: {
            //valueSuffix: '°C'
            valuePrefix: '$'
        },
        legend: {
        		enabled: false,
            layout: 'vertical',
            align: 'right',
            verticalAlign: 'middle',
            borderWidth: 0
        },
        series: [{
        		name: 'Total Orders',
            data: [200, 300, 1000, 1250, 900, 1150, 800]
        }]
    });
});