Hardened stack logic to stackedPlot.ts

stackedBarPlot.ts moved to child stackedPlot.ts