How to draw Stacked Bar Chart with D3.js/Google Chart?

I wanted to draw a stacked bar chart in my app, but I couldn’t find any documentations about this excepts this one Charts and graphs in SAP AppGyver(and creating Fiori-like dashboard) | SAP Blogs.
Is there any other resources that I could refer to? Preferably has a step-by-step guide for stacked graph.
Besides, that would be great if anyone could share how to adjust the graph size (so that it could fit the container in the app)! Thanks!