Skip to content

How to change spacing between facets (rows/columns) #3018

Answered by joelostblom
mcp292 asked this question in Q&A
Discussion options

You must be logged in to vote

There is a spacing parameter (although it might be nicer to make these vertical bar chart, add newlines, or rotate the labels):

alt.Chart(source).mark_bar().encode(
    x=alt.X('year:O', title="More than year"),
    y='sum(yield):Q',
    color='year:N',
    column=alt.Column('site:N', spacing=50)
)

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@mcp292
Comment options

@mcp292
Comment options

Answer selected by mcp292
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants