Amber II - Infrastructure

Tech Dept Voiting - Infrastructure - Amber II

by NesterOne

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: 500px; max-width: 700px; margin: 0 auto"></div>

JavaScript

$(function () {
    $('#container').highcharts({
        chart: {
            plotBackgroundColor: null,
            plotBorderWidth: null,
            plotShadow: false
        },
        title: {
            text: 'Tech Dept Voiting - Infrastructure - Amber II'
        },
        tooltip: {
            pointFormat: '{series.name}: <b>{point.percentage:.1f}%</b>'
        },
        plotOptions: {
            pie: {
                events: {
                    'click': function(e){
                        window.open("http://wiki.jaspersoft.com/display/~inesterenko/Amber+II+-+Tech+Dept+List+Voites#AmberII-TechDeptListVoites-Aggregatedvotes");
                    }
                },
             //   allowPointSelect: true,
                cursor: 'pointer',
                dataLabels: {
                    enabled: true,
                    format: '<b>{point.name}</b>: {point.percentage:.1f} %',
                    style: {
                        color: (Highcharts.theme && Highcharts.theme.contrastTextColor) || 'black'
                    }
                }
            }
        },
        series: [{
            type: 'pie',
            name: 'Tech Dept Voiting - Infrastructure',
            data: [
                ['JIRA vs Bugzilla', 51],
                ['GIT vs SVN', 42],
                ['Build FAF', 25],
                ['Build JRS', 23],
                ['Docs FAF', 22],
                ['Hotfix',  21],
                ['Viz Samples',  10]
            ]
        }]
    });
});