Revenue Pie Chart

by mharrisn

HTML

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

<div id="container"></div>

JavaScript

$(function () {

    $(document).ready(function () {

        // Build the chart
        Highcharts.chart('container', {
            chart: {
                plotBackgroundColor: null,
                plotBorderWidth: null,
                plotShadow: false,
                type: 'pie'
            },
            title: {
                text: 'Revenue Pool for Current Quarter'
            },
            tooltip: {
                pointFormat: '{series.name}: <b>{point.percentage:.1f}%</b>'
            },
            plotOptions: {
                pie: {
                    allowPointSelect: true,
                    cursor: 'pointer',
                    dataLabels: {
                        enabled: false
                    },
                    showInLegend: true
                }
            },
            series: [{
                name: 'Brands',
                colorByPoint: true,
                data: [{
                    name: 'Received',
                    y: 9.249,
                    color:'#1e75b9'
                }, {
                    name: 'Scheduled',
                    y: 24.03,
                    sliced: true,
                    selected: true,
                    color:'#00AA00'
                }, {
                    name: 'Unscheduled',
                    y: 2.134,
                    color:'#FFFF00'
                }, {
                    name: 'Out of Quarter',
                    y: 4.77,
                    color:'#FF0000'
                }]
            }]
        });
    });
});