852 change stacked bar plot

Retarget from #933
as discussed in old PR - are these 2 functions really needed?