# 8.1 report module - add/delete pens in chart

**URL:** <https://forum.inductiveautomation.com/t/8-1-report-module-add-delete-pens-in-chart/66929>\
**Category:** Ignition\
**Tags:** ignition81, scripting\
**Created:** [November 25, 2022, 3:04pm UTC](https://forum.inductiveautomation.com/t/8-1-report-module-add-delete-pens-in-chart/66929 "2022-11-25T15:04:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![flavien](https://avatars.discourse-cdn.com/v4/letter/f/f475e1/32.png) [@flavien](https://forum.inductiveautomation.com/u/flavien)\
**Post date:** [November 25, 2022, 3:04pm UTC](https://forum.inductiveautomation.com/t/8-1-report-module-add-delete-pens-in-chart/66929/1 "2022-11-25T15:04:50Z")

</div>

Hi,

In report module I would like to add or delete a pen in my timeseries chart by script.  
Is it possible and how to do this ?

---

<div class="post-metadata">

**Author:** ![Ben\_Eklund](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ben_eklund/32/40758_2.png) [@Ben\_Eklund](https://forum.inductiveautomation.com/u/Ben_Eklund)\
**Post date:** [December 7, 2022, 5:23pm UTC](https://forum.inductiveautomation.com/t/8-1-report-module-add-delete-pens-in-chart/66929/2 "2022-12-07T17:23:21Z")

</div>

No, the only place you can add scripts to a report is within the "Data" section, and pens cannot be added there.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [December 7, 2022, 6:24pm UTC](https://forum.inductiveautomation.com/t/8-1-report-module-add-delete-pens-in-chart/66929/3 "2022-12-07T18:24:27Z")

</div>

Charts in the report module allow a `configureChart` script to run. Those scripts can do anything the JFreeChart API permits. Very similar to using `configureChart` scripts in Vision. I would expect you to be able to hide pens dynamically. Maybe not create them.

Many, many possibilities:

[https://forum.inductiveautomation.com/search?q=configureChart](https://forum.inductiveautomation.com/search?q=configureChart)
