bars = alt.Chart(marvel).mark_bar().encode(
x=alt.X('OpeningWeekendNorthAmerica', axis=alt.Axis(title='Gross Revenue Opening Weekend')),
y=alt.Y('Title', axis=alt.Axis(title='Movie Title')),
color="Budget"
)
text = bars.mark_text(
align='left',
baseline='middle',
dx=3 # Nudges text to right so it doesn't appear on top of the bar
).encode(
text='Distributor'
)
(bars + text).properties(height=900)
I Just want to know how to move the color key from the upper right to the middle right side of the graph to avoid the text overlapping. Link to Chart Image

