This is the chart I have now:
I'd like to make more space between the percent label and the start of the bar chart, similar to this chart:
This is the code I'm working on:
chart = alt.Chart(percentages_df).mark_bar(size=17, color= '#DAC352', dx=100).encode(
x=alt.X(
'PERCENT',axis=None),
y=alt.Y(
'PERCENT_TEXT',
axis=alt.Axis(domain=False, tickSize=0,title='') ,sort='-y'))
text = alt.Chart(percentages_df).mark_text().encode(
y=alt.Y('PERCENT_TEXT',axis=None, sort='-y'),
text='EMOJI'
)
new_chart = alt.hconcat(text, chart).configure_view(strokeWidth=0).configure_axis(grid=False)
new_chart


