Skip to content

Multi-line facet strings #1054

Answered by Fil
captain-yoshi asked this question in Q&A
Discussion options

You must be logged in to vote

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

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Fil
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
Converted from issue

This discussion was converted from issue #1053 on September 21, 2022 14:54.