Book Image

Highcharts Essentials

By : Bilal Shahid
Book Image

Highcharts Essentials

By: Bilal Shahid

Overview of this book

Table of Contents (16 chapters)
Highcharts Essentials
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Excluding a series from stacking


We can also exclude a particular series from stacking by passing null to its stacking property, as shown in the following code:

series: [{
  name: 'Gold',
  data: [46, 38, 24, 29, 13]
}, {
  name: 'Silver',
  data: [29, 27, 26, 17, 8]
}, {
  name: 'Bronze',
  data: [29, 23, 32, 19, 7],
  stacking: null
}]

The Bronze series will now be excluded from the stacking context and will be shown in a separate column:

In the next example, we will configure the column chart to stack data series proportionally for each category.