stacked column and stacked area on same chart
Setting stacked option for a widget apply only its default choice, which means one cannot choose if the second series will be presented stacked on not.
here is a quick solution for having both stacked column and stacked area on the same chart.
- Choose default type for you widget - lets assume area chart (stacked).
- change from the left panel the type of the other measures (the ones you want to present as stacked column) to column type
- copy and paste the following code into the widget edit script:
widget.on('processresult', function(se, ev){
ev.result.plotOptions.column = {stacking:"normal"};
})
and you are done.
Example:
Before:
after:
change column type.zip
Please sign in to leave a comment.
Comments
1 comment