Responsive Pyramid Bar Chart¶
In [27]:
%matplotlib inline
from verticapy.datasets import load_titanic
titanic = load_titanic()
titanic.hchart(x = "survived", y = "pclass", kind = "negative_bar",)
Out[27]:
In [3]:
%load_ext verticapy.hchart
In [26]:
%%hchart -type negative_bar
SELECT
survived,
pclass,
COUNT(*)
FROM titanic GROUP BY 1, 2;
Out[26]:
