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.hchart
In [17]:
%%hchart -type stacked_bar
SELECT
pclass,
survived,
COUNT(*)
FROM titanic GROUP BY 1, 2;
Out[17]:
