Performance Review - Highcharts

by verashn

HTML

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

<div id="container" style="min-width: 310px; height: 400px; margin: 0 auto"></div>

JavaScript

$(function () {
    Highcharts.setOptions({
        colors: ['#203770', '#3d91ce', '#498F8F', '#6E5DA4', '#24CBE5', '#64E572', '#FF9655', '#FFF263', '#6AF9C4'],
        lang: {
            decimalPoint: '.',
            thousandsSeparator: ','
        },
        chart: {
            style: {
                fontFamily: 'Source Sans Pro'
            }
        }
    });
    $('#container').highcharts({
        chart: {
            type: 'column'
        },
        title: {
            text: 'Performance Review by Asset Class'
        },
        xAxis: {
            categories: [
                'Current Month',
                'QTD',
                'YTD',
                'Annualized'
            ],
            crosshair: true
        },
        yAxis: {
            min: 0,
            title: {
                text: ''
            }
        },
        tooltip: {
            headerFormat: '<span style="font-size:10px">{point.key}</span><table>',
            pointFormat: '<tr><td style="color:{series.color};padding:0">{series.name}: </td>' +
                '<td style="padding:0"><b>{point.y:.1f} mm</b></td></tr>',
            footerFormat: '</table>',
            shared: true,
            useHTML: true
        },
        plotOptions: {
            column: {
                pointPadding: 0.2,
                borderWidth: 0
            }
        },
        series: [{
            name: 'Portfolio',
            data: [4.31, 4.31, 4.31, 4.85]

        }, {
            name: 'Benchmark',
            data: [4.48, 4.48, 4.48, 5.61]

        }]
    });
});