Replies: 1 comment
-
Nevermind, found it: alt.Chart(df).mark_line().encode(
x = "date",
y = "amount",
color = "category",
).properties(
height = 400,
width = 500,
).facet(
'group:N',
columns = 2 # <--- this one
) I was simply using the the concise notation, e.g. : alt.Chart(iris).mark_point().encode(
x='petalLength:Q',
y='petalWidth:Q',
color='species:N',
column='species:N'
).properties(
width=180,
height=180
) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I quite like altair's facet interface (as explained here), the only thing that I am looking for that I cannot find is a way to wrap my facet, in ggplot style? I am faceting by a single column with 4 distinct categories and I'd like to see a 2x2 grid instead of a row/column with 4 items
Beta Was this translation helpful? Give feedback.
All reactions