Stacked Bar Chart

In [10]:
%matplotlib inline
from verticapy.datasets import load_titanic

titanic = load_titanic()
titanic.bar(["survived", "pclass"],
            color = ["#0073E7", "#263133", "#FE5016"],
            hist_type = "stacked")
Out[10]:
<AxesSubplot:xlabel='Density', ylabel='"survived"'>