# Plot: Set the size of each facet rather than the whole chart?

**URL:** <https://talk.observablehq.com/t/plot-set-the-size-of-each-facet-rather-than-the-whole-chart/6812>\
**Category:** Help\
**Created:** [July 14, 2022, 7:13pm UTC](https://talk.observablehq.com/t/plot-set-the-size-of-each-facet-rather-than-the-whole-chart/6812 "2022-07-14T19:13:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![papakpmartin](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/papakpmartin/32/5780_2.png) [@papakpmartin](https://talk.observablehq.com/u/papakpmartin)\
**Post date:** [July 14, 2022, 7:13pm UTC](https://talk.observablehq.com/t/plot-set-the-size-of-each-facet-rather-than-the-whole-chart/6812/1 "2022-07-14T19:13:17Z")

</div>

Is it possible to say that I’d like the height of a faceted chart to be something (say `100`) no matter how many facets end up being generated?

So, at (pretending) `facetHeight: 100` if there were two facets generated, it would be 200 plus axes and spacing… if there were 7 it would be 700 plus axes and spacing.

---

<div class="post-metadata">

**Author:** ![Fil](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/fil/32/207_2.png) [@Fil](https://talk.observablehq.com/u/Fil)\
**Post date:** [July 14, 2022, 8:23pm UTC](https://talk.observablehq.com/t/plot-set-the-size-of-each-facet-rather-than-the-whole-chart/6812/2 "2022-07-14T20:23:14Z")

</div>

This is not possible at the moment, you would have to write `height : 50 + 100 * d3.groups(data, d => fy(d)).length`. Please open an issue so we can discuss it on github?

---

<div class="post-metadata">

**Author:** ![papakpmartin](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/papakpmartin/32/5780_2.png) [@papakpmartin](https://talk.observablehq.com/u/papakpmartin)\
**Post date:** [July 14, 2022, 10:48pm UTC](https://talk.observablehq.com/t/plot-set-the-size-of-each-facet-rather-than-the-whole-chart/6812/3 "2022-07-14T22:48:21Z")

</div>

> [@Fil](#):
>
> fy(d)

What is `fy()`?

---

<div class="post-metadata">

**Author:** ![Fil](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/fil/32/207_2.png) [@Fil](https://talk.observablehq.com/u/Fil)\
**Post date:** [July 15, 2022, 1:24pm UTC](https://talk.observablehq.com/t/plot-set-the-size-of-each-facet-rather-than-the-whole-chart/6812/4 "2022-07-15T13:24:13Z")

</div>

sorry I should have explicited: it’s the accessor function you are using to create the facet
