Answer to Stack Overflow question: http://stackoverflow.com/questions/38694539/which-chart-type-should-i-choose-to-show-change-in-values-between-2-dates

Mike Zavarello

by Mike Zavarello

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; max-width: 800px; height: 400px; margin: 0 auto"></div>

JavaScript

$(function () {
    $('#container').highcharts({
        chart: {
            type: 'bar'
        },
        title: {
            text: 'Sample Chart'
        },
        xAxis: {
            categories: ['29-Aug','30-Aug'],
            title: {
                text: null
            }
        },
        yAxis: {
            min: 0
        },
        tooltip: {
            valueSuffix: ' millions'
        },
        plotOptions: {
            bar: {
                dataLabels: {
                    enabled: true,
                    style: {
                    	fontSize: '20px'
                    }
                }
            }
        },
        legend: {
            enabled: false
        },
        credits: {
            enabled: false
        },
        series: [{
            name: 'Sample Series',
            data: [21.2,21.3]
        }]
    });
});