StackedPie

by kzoon

HTML

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

<div id="container" style="height: 400px; width: 500"></div>

JavaScript

$(function() {
    var colors = Highcharts.getOptions().colors;
    var chart = new Highcharts.Chart({
        chart: {
            renderTo: 'container',
            type: 'pie'
        },

        plotOptions: {
            pie: {
                dataLabels: {
                    enabled: false
                }
            }
        },

        series: [
            {
            showInLegend: true,
            size: "75%",
            data: [
                {
                name: 'Firefox',
                y: 34.2,
                legendIndex: 0,
                color: colors[0]},
            {
                name: 'IE7',
                y: 26.6,
                legendIndex: 1,
                color: colors[1]}
            ]},
        {

            size: "50%",

            data: [
                {
                name: 'Firefox',
                y: 44.2,
                legendIndex: 0,
                color: colors[0]},
                
            {
                name: 'IE7',
                y: 25.6,
                legendIndex: 1,
                color: colors[1]}

            ]
        }

    ]
    });
});