Replies: 2 comments 8 replies
-
You can see a couple of approaches for this here https://stackoverflow.com/questions/71600310/make-collective-title-for-columned-altair-chart |
Beta Was this translation helpful? Give feedback.
-
Thanks to @joelostblom and his comment, this is one working solution: chart = alt.Chart(df).mark_bar().encode(
x="P:N",
y=alt.Y("Max:Q", title=None),
color="P:N",
row=alt.Row("T:N", title=["Maximum Long Word Observed (units)", "", "T"]),
column="C:N"
).properties(width=100, height=100) This seems to work, but is not documented. If there becomes a built-in I would love to know. Or a more low-level answer that actually makes the y-axis one, that would be great and more consistent with the other plots in the paper. Therefore, I will leave this answer open unless otherwise advised. Also, the fact that defining
|
Beta Was this translation helpful? Give feedback.
-
Coming here as advised in altair-viz/altair-viz.github.io#28. I will repeat everything here for convenience:
Using one label for an entire facet grid is not documented in Adjusting Axis Labels.
How can I make this plot only use one y-label?
MWE
Beta Was this translation helpful? Give feedback.
All reactions