Responsive Stacked Bar Chart

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

titanic = load_titanic()
titanic.hchart(x = "pclass", y = "survived", kind = "stacked_bar")
Out[16]:
In [3]:
%load_ext verticapy.vCharts
In [17]:
%%vCharts -type stacked_bar
SELECT 
    pclass,
    survived,
    COUNT(*)
FROM titanic GROUP BY 1, 2;
Execution: 0.19s
Out[17]: