Set bar width for stacked bar charts

How to set the bar width for stacked bar charts to some value.
With bar width I imply the amount of the x-axis it takes to show the graph.

Have you tried ?

Interestingly if I use the package from npm in angular for plotly, it does not offer width feature. However, with cdn it does. Can you tell the reason why?

which npm package? Thereโ€™s a few angular wrappers in the wild.

That makes sense. But, is there a way with angular and plotly we can make isolated web applications. By that I mean including plotly in angular in some other way than other than cdn.