# Plot.rectangle opacity

**URL:** <https://talk.observablehq.com/t/plot-rectangle-opacity/6752>\
**Category:** Help\
**Created:** [June 29, 2022, 4:13am UTC](https://talk.observablehq.com/t/plot-rectangle-opacity/6752 "2022-06-29T04:13:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![demiahmed](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/demiahmed/32/6607_2.png) [@demiahmed](https://talk.observablehq.com/u/demiahmed)\
**Post date:** [June 29, 2022, 4:13am UTC](https://talk.observablehq.com/t/plot-rectangle-opacity/6752/1 "2022-06-29T04:13:04Z")

</div>

How can I control the fill opacity of `Plot.rect()` . Can’t fund any suitable documentation in the official docs, any help is greatly appreciated

---

<div class="post-metadata">

**Author:** ![Cobus](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/cobus/32/9670_2.png) [@Cobus](https://talk.observablehq.com/u/Cobus)\
**Post date:** [June 29, 2022, 4:39am UTC](https://talk.observablehq.com/t/plot-rectangle-opacity/6752/2 "2022-06-29T04:39:39Z")

</div>

Check out `fillOpacity` here:

> **[Plot Cheatsheets - Marks](https://observablehq.com/@observablehq/plot-cheatsheets-marks?collection=@observablehq%2Fplot-cheatsheets#cell-1075)**
>
> Geometric symbols that represent your data Overview To create a Plot, pass an array of Marks to your \`Plot.plot\` function. Explore below to familiarize yourself with the different mark types and associated channels. Lines and Areas Dots and Links...

(official API documentation here: [plot/README.md at main · observablehq/plot · GitHub](https://github.com/observablehq/plot/blob/main/README.md#marks))
