Skip to content

Is it possible to format the "proportion-facet" value from a groupZ transformation in a Plot.text mark? #2306

Discussion options

You must be logged in to vote

Yes, with the map transform:

Plot.map({text: (values) => values.map(d3.format(".0%"))},
    Plot.stackX(…………) 
)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@innosuisse-impact-owner
Comment options

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