Pie chart with two pies

Description

The following code shows how to pie chart with two pies.

Example


<!DOCTYPE html>
<html>
<head>
<script type='text/javascript' src='https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js'></script>
<script type='text/javascript' src="http://code.highcharts.com/highcharts.js"></script>
<script type='text/javascript'>
$(function () {<!--   ww  w. j a v  a 2  s .c o  m-->
    $('#container').highcharts({
        chart: {
            type: 'pie'
        },
        series: [{
            data: [30, 70, 100, 130],
            center: ["25%", "50%"]
        },{
            data: [{
                color: "red",
                y: 10,
                name: "a"
            }, {
                color: "yellow",
                y: 20,
                name: "b"
            }, {
                color: "green",
                y: 25,
                name: "c"
            }],
            center: ["75%", "50%"]
        }],
        plotOptions: {
            pie: {
                size: "60%"
            }
        },
    });
});
</script>
</head>
<body>
  <div id="container" ></div>
</body>
</html>

Click to view the demo





















Home »
  highcharts »
    Chart by Type »




Area Chart
Bar Chart
Boxplot Chart
Bubble Chart
Column Chart
Gauge Chart
Line Chart
Pie Chart
Polar Chart
Scatter Chart
Spline Chart