sxmpasch commented on issue #9264: Sum of stacks of Stacked bar chart
URL: 
https://github.com/apache/incubator-echarts/issues/9264#issuecomment-431818759
 
 
   Just either change the label on the topmost stacked series, or add another 
series. Label change: Something like this:
   ```
               label: {
                   normal: {
                       show: true,
                       position: 'top',
                       formatter: function(params) {
                           let val=0;
                           this.option.series.forEach(s => { 
                               val+=s.data[params.dataIndex];
                           } );
                           return val;
                       }
                   }
               },
   
   ```
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to