Set series stack number

Description

The following code shows how to set series stack number.

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'>
$(function () {<!--from   w w w  . jav  a  2 s.  c  om-->
    $('#container').highcharts({
        plotOptions: {
            column: {
                stacking: 'normal'
            }
        },
        series: [
            {
                data: [9.9, 71.5, 16.4, 19.2, 14.0],
                stack: 0
            }, {
                data: [130, 76.0, 15.6, 18.5, 26.4],
                stack: 0
            }, {
                data: [16.4, 29.2, 14.0, 129.9, 171.5],
                stack: 1
            }, {
                data: [18.5, 16.4, 130, 76.0, 15.6],
                stack: 1
            }
        ]
     
    });
});
</script>
</head>
<body>
<script src="http://code.highcharts.com/highcharts.js"></script>
<div id="container" style="height: 400px"></div>
</body>
</html>

Click to view the demo





















Home »
  highcharts »
    Series »




Series
Series Color
Series Data
Series Event
Series Marker
Series Style