layer_histograms: add stack option
layer_bars: use correct props when stack=TRUE