How do I display the stack totals on my stacked bar chart?

You can use value boxes and the %total token to display the total stacked value for each bar on your chart. You should place the valueBox object in the last series object so that the total stacked value appears once per bar. See the below chart.

series : [
{ //last series object
values : [3,4,7,9,5,4,6,8],
text: 'Green',
valueBox: {
text: 'Total:<br>%total',
fontColor: 'black'

Refer to the Tokens Tutorial for more information and a full tokens list. You may also want to refer to the Bar Charts Tutorial and Value Boxes Tutorial.

Have more questions? Submit a request


Please sign in to leave a comment.