cancel
Showing results for 
Search instead for 
Did you mean: 

Formatting the Total Values in a Stacked Bar Chart

KenLaVan
7 - Data Storage
7 - Data Storage

Hi! Was looking around for a script that can edit the total value font, color, weight, and size on a stacked bar chart and was unsuccessful. Was wondering if anyone had something that could work. We have found script that can edit the values and now we want the totals to match the formatting of them (see photo attached)

 

2 REPLIES 2

Harry
9 - Travel Pro
9 - Travel Pro

Hello @KenLaVan ,

You can use below code to change color and font size.

widget.on('processresult',function(se,ev) {

ev.result.yAxis[0].stackLabels.style.color = 'green'
ev.result.yAxis[0].stackLabels.style["font-size"] = '15px'

});

Please let me know if you have any questions.

 

Always here to help,
Harry from QBeeQ
[email protected]
www.qbeeq.pl

cnovus
8 - Cloud Apps
8 - Cloud Apps

@Harry , Thank you! We've been looking for a solution, and this works!