Forum Discussion

KenLaVan's avatar
KenLaVan
Data Storage
10-21-2022

Formatting the Total Values in a Stacked Bar Chart

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

Replies have been turned off for this discussion
  • Harry's avatar
    Harry
    Cloud Apps

    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

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