Skip to content

How can I center a text label above a pair of bars? #1617

Answered by Fil
pelly asked this question in Q&A
Discussion options

You must be logged in to vote

To make Plot work on observable, create an account, then create a new notebook, and paste each statement into a different cell.

Here's a suggestion to place the category label just over the highest bar in each facet:
https://observablehq.com/@recifs/plot-facet-label-placement--support

Technically, it's not the facet label, but a text mark where we select the datum which has the highest value for y.

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@pelly
Comment options

@pelly
Comment options

@Fil
Comment options

Fil May 28, 2023
Collaborator

Answer selected by pelly
@mbostock
Comment options

@Fil
Comment options

Fil May 28, 2023
Collaborator

@pelly
Comment options

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