Altair 01
code
altair
source = pandas.DataFrame(
{
"a": ["A", "B", "C", "D", "E", "F", "G", "H", "I"],
"b": [28, 55, 43, 91, 81, 53, 19, 87, 52],
}
)
chart = altair.Chart(source, background="transparent").mark_bar().encode(x="a", y="b")
result = {"altair": json.loads(chart.to_json())}
Altair
1
10
4
#47bbb3
#ffffff