I would like to add text (more specifically, percentages or actual values) to each category in my stacked grouped bar chart.
Here's my code:
bar = alt.Chart(df1).mark_bar().encode(
x=alt.X('Week:N', title=None),
y=alt.Y('sum(Net Gross Booking Value USD):Q',
axis=alt.Axis(grid=True,title=None)),
column=alt.Column('Country Name:N', title=None),
color=alt.Color('Platform Type Name:N',
scale=alt.Scale(
range=['#636EFA', '#EF553B','#00CC96'])))
bar
Is there a way to do that?
I have tried this: https://github.com/altair-viz/altair/issues/1570, but I'm still getting an error that a layered graph can't be faceted.