Skip to content

How to get mean value within data of a facet? #1104

Answered by mbostock
knutwannheden asked this question in Q&A
Discussion options

You must be logged in to vote

You can use the groupZ transform:

Plot.ruleY(ib_tr, Plot.groupZ({y: "median"}, {y: "rating", stroke: "red"}))

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@knutwannheden
Comment options

@knutwannheden
Comment options

@mbostock
Comment options

Answer selected by knutwannheden
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