Organization Certification

by Amit Sinha

HTML

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

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

JavaScript

$(function () {
var data = [{
            name: 'Issues',
            colorByPoint: true,
            data: [{
                name: 'Not Certified',
                y: 12
            }, {
                name: 'Certified',
                y: 15,
                sliced: true,
                selected: true
            }, {
                name: 'Certified with issues',
                y: 10
            }]
        }]// JavaScript Document
    $('#container').highcharts({
        chart: {
            plotBackgroundColor: null,
            plotBorderWidth: null,
            plotShadow: false,
            type: 'pie'
        },
        title: {
            text: 'Organization Certification Result'
        },
        tooltip: {
            pointFormat: '{series.name}: <b>{point.percentage:.1f}%</b>'
        },
        
        plotOptions: {
            pie: {
                allowPointSelect: true,
                cursor: 'pointer',
                dataLabels: {
                    enabled: true,
                    format: '{point.y}',
                    style: {
                        color: (Highcharts.theme && Highcharts.theme.contrastTextColor) || 'black'
                    }
                },showInLegend: true
            }
        },
        series: data
    });
});