Please use the Chart widgets, if you can, it has most required functions It can also create bar /column stacked chart.
Just set the tab "Advanced" the "Mode" to "Advanced" And set in the layout options {"barmode": "stack"}
To make it with any charts see:" https://plot.ly/javascript/bar-charts/#stacked-bar-chart Set the layout {"barmode": "stack"}
Cheers, Andries