sxmpasch commented on issue #9264: Sum of stacks of Stacked bar chart URL: https://github.com/apache/incubator-echarts/issues/9264#issuecomment-431819551 Either change your topmost label or add another series with 0-values on top with something like the following label formatter: ``` 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]
