# Rectangle fill in a report

**URL:** <https://forum.inductiveautomation.com/t/rectangle-fill-in-a-report/82046>\
**Category:** Ignition\
**Tags:** reporting\
**Created:** [November 17, 2023, 2:17pm UTC](https://forum.inductiveautomation.com/t/rectangle-fill-in-a-report/82046 "2023-11-17T14:17:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![eddie\_johnson](https://avatars.discourse-cdn.com/v4/letter/e/57b2e6/32.png) [@eddie\_johnson](https://forum.inductiveautomation.com/u/eddie_johnson)\
**Post date:** [November 17, 2023, 2:17pm UTC](https://forum.inductiveautomation.com/t/rectangle-fill-in-a-report/82046/1 "2023-11-17T14:17:35Z")

</div>

Is there a way to link a parameter to rectangle fill on a report?

I'd like to use a few rectangles instead of a graph. The idea was to capture the value at the time of the report without writing to a DB or creating a dataset.

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [November 17, 2023, 2:48pm UTC](https://forum.inductiveautomation.com/t/rectangle-fill-in-a-report/82046/2 "2023-11-17T14:48:15Z")

</div>

You can play around with using parameters in the Basic Properties of the rectangle. As a quick test:

- On the Data tab add a parameter `reading1`. Set the default value to 75.
- On the Design tab place a pair of identical rectangles one above the other. (One will be used to compare width and position with the other.)
- On the first rectangle set the fill color.
- On the Scale X property, right-click and click 'Use dynamic data key'. Set the property to `reading1 / 100`.
- Preview the report.

In mine it scaled the width of the green rectangle but did it from the centre. To avoid this you might want to play with the `Width` parameter instead. In that case I would be inclined to add a second parameter `percBar100pcWidth` or similar and use that as well with something like `perBar100pcWidth * reading1 / 100`. I didn't try it.

---

<div class="post-metadata">

**Author:** ![eddie\_johnson](https://avatars.discourse-cdn.com/v4/letter/e/57b2e6/32.png) [@eddie\_johnson](https://forum.inductiveautomation.com/u/eddie_johnson)\
**Post date:** [November 17, 2023, 3:01pm UTC](https://forum.inductiveautomation.com/t/rectangle-fill-in-a-report/82046/3 "2023-11-17T15:01:04Z")

</div>

Thanks, that seems promising. I was trying to use fill and height properties with no luck.
