Multi-line facet strings #1054
Answered
by
Fil
captain-yoshi
asked this question in
Q&A
Multi-line facet strings
#1054
-
I can add manually newlines with Plot.plot({
height: 600,
grid: true,
facet: {
data: penguins,
x: "I want a newline \n here",
y: "species",
marginRight: 80
},
...
}) |
Beta Was this translation helpful? Give feedback.
Answered by
Fil
Sep 21, 2022
Replies: 1 comment
-
That's an unexpected use of faceting :). Plot has no title option yet, see #92. You could alternatively use: |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Fil
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
That's an unexpected use of faceting :). Plot has no title option yet, see #92.
You could alternatively use:
Plot.text(["My title"], {frameAnchor: "top", dy: -20, lineAnchor: "bottom", text: d => d})
See https://observablehq.com/@recifs/a-centered-title