direct reports score comparison

by tacomanator

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

JavaScript

$(function () {
    var chart;
    $(document).ready(function() {
        chart = new Highcharts.Chart({
            chart: {
                renderTo: 'container',
                type: 'bar',
                width: 580
            },
            title: {
                text: 'Overall Score'
            },
            xAxis: {
                categories: ['Damir Davidovic', 'Drew Goodwin', 'Victor Bello', 'Philly Austira', 'Kedar Mohile'],
                title: {
                    text: null
                }, labels: {
                                     formatter: function() {
                                         return this.value + ' ' + ' <img src="https://dl.dropbox.com/u/7600/personthumb.png" style="width:30px;height:30px;vertical-align:middle" alt="" />'
                    },
                    useHTML: true   
                }
            },
            yAxis: {
                min: 0,
                title: {
                    text: 'Score (%)',
                    align: 'high'
                },
                labels: {
                    overflow: 'justify'
                }
            },
            tooltip: {
                formatter: function() {
                    return ''+
                        this.series.name +': '+ this.y +' millions';
                }
            },
            plotOptions: {
                bar: {
                    dataLabels: {
                        enabled: true
                    }
                }
            },

            credits: {
                enabled: false
            },
            series: [{
                name: 'Current Year',
                data: [40, 75, 70, 80, 55]
            }]
        });
    });
    
});