2D Highchart

by Rob Sedgwick

HTML

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

<div id="container" style="width: 810px; height: 500px; margin: 0 auto"></div>

JavaScript

$(function () {
    $('#container').highcharts({
       credits: {
            enabled: false
        },
        chart: {
            type: 'column',
            marginRight: 150
        },
        title: {
            text: '191 files generated during the period August-October'
        },
        xAxis: {
            categories: ['August', 'September', 'October']
        },
        yAxis: {
            min: 0,
            max: 100,
            title: {
                text: ''
            },
             labels: {
                formatter: function(){return this.value+'%';}
            },
            stackLabels: {
                enabled: false,
                style: {
                    fontWeight: 'bold',
                    color: (Highcharts.theme && Highcharts.theme.textColor) || 'gray'
                }
            }
       },
       legend: {
            align: 'right',
            verticalAlign: 'middle',
            floating: true,
            backgroundColor: (Highcharts.theme && Highcharts.theme.background2) || 'white',
            borderColor: '#CCC',
            borderWidth: 1,
            shadow: false,
           layout: 'vertical',
           x:0,
           y:10
        },
        tooltip: {
            formatter: function () {
                return '<b>' + this.x + '</b><br/>' +
                    this.series.name + ': ' + this.y + '<br/>' +
                    'Total: ' + this.point.stackTotal;
            }
        },
        plotOptions: {
            column: {
                stacking: 'normal',
                dataLabels: {
                    enabled: false,
                    color: (Highcharts.theme && Highcharts.theme.dataLabelsColor) || 'white',
                    style: {
                        textShadow: '0 0 3px black'
                    },
    renderTo: container,
    type: 'column'                },                
            }
        },
        series: [{
            name: 'Funds Library',
            data: [2.60,...