Код: Выделить всё
source = pd.DataFrame({
"Category":list("AAABCCC"),
"Group":list("xyzxxyz"),
"Value":[0.1, 0.6, 0.9, 0.7, 0.6, 0.1, 0.2]
})
alt.Chart(source).mark_bar().encode(
x="Category:N",
y="Value:Q",
xOffset="Group:N",
color="Group:N"
)

Подробнее здесь: https://stackoverflow.com/questions/785 ... th-xoffset