You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import altair as alt
from vega_datasets import data
source = data.barley()
alt.Chart(source).mark_bar().encode(
x='year:O',
y='sum(yield):Q',
color='year:N',
column='site:N'
)
Question
I'd like to add custom spacing between the columns. For example, Crookston and Duluth (first two cols) should be closer together than Grand Rapids, Morris and University Farm. And Waseca should be more spaced out from University Farm. Is there a way to do this in Altair?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Question
I'd like to add custom spacing between the columns. For example, Crookston and Duluth (first two cols) should be closer together than Grand Rapids, Morris and University Farm. And Waseca should be more spaced out from University Farm. Is there a way to do this in Altair?
Beta Was this translation helpful? Give feedback.
All reactions