Highcharts Demo

author(s): Torstein Hønsi

HTML

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

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

JavaScript

$(function () {
    window.chart = new Highcharts.Chart({
        chart: {
            renderTo: 'container',
            defaultSeriesType: 'column'
        },
        xAxis: {
            categories: ['Total'],
            labels: {
                enabled: false
            }
        },
        plotOptions: {
            series: {
                allowPointSelect: true,
                stacking: 'normal'
            }
        },
        series: [{
            id: 'positive',
            name: 'Positive',
            data: [29.9],
            color: 'blue',
            stack: 'total',
            states: {
                select: {
                    color: 'green'
                }
            }
        }, {
            id: 'negative',
            name: 'Negative',
            data: [-130.4],
            color: 'blue',
            stack: 'total',
            states: {
                select: {
                    color: 'red'
                }
            }           
        }]
    });
    
    
    
});