# How to create a dynamic Timeseries chart?

**URL:** <https://forum.inductiveautomation.com/t/how-to-create-a-dynamic-timeseries-chart/93234>\
**Category:** Ignition\
**Tags:** ignition81, reporting\
**Created:** [July 15, 2024, 3:00pm UTC](https://forum.inductiveautomation.com/t/how-to-create-a-dynamic-timeseries-chart/93234 "2024-07-15T15:00:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Amanda\_Marti](https://avatars.discourse-cdn.com/v4/letter/a/0ea827/32.png) [@Amanda\_Marti](https://forum.inductiveautomation.com/u/Amanda_Marti)\
**Post date:** [July 15, 2024, 3:00pm UTC](https://forum.inductiveautomation.com/t/how-to-create-a-dynamic-timeseries-chart/93234/1 "2024-07-15T15:00:29Z")

</div>

Hello, I need to create a report that includes a **dynamic Timeseries chart** (by default, it doesn’t know what it should display). I’ve already reviewed several forum discussions and explored aspects of the JFreeChart API, but I haven’t made any progress. I’d like to know if this is possible, and if it is, **I’d appreciate it if someone could provide an example**.

I’m working with Ignition version 8.1.37 and Reporting Module version 6.1.37 (Trial).

_Thank you in advance_

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [July 15, 2024, 3:27pm UTC](https://forum.inductiveautomation.com/t/how-to-create-a-dynamic-timeseries-chart/93234/2 "2024-07-15T15:27:34Z")

</div>

It involves a non-trivial amount of scripting, because you have to do with scripting all the Ignition -\> JFreeChart stuff that we're automatically doing for you "under the hood", but it is possible.  
This thread is probably a reasonable starting point:

> [@Dynamic report chart, legend not hiding unused pens](https://forum.inductiveautomation.com/t/dynamic-report-chart-legend-not-hiding-unused-pens/44565):
>
> As it can bee seen in the below picture, all my preconfigured pens are showing in the legend. How can I hide those not used? The solution below does not do anything (commented with # added ) [image] I almost have a dynamic reporting chart. (supplying variable amount of pens into a reporting chart. Thanks to @PGriffith for the following code: ######################################################## #builds a new dataset, removes null pens: #import system from org.jfree.data.xy imp…

---

<div class="post-metadata">

**Author:** ![Amanda\_Marti](https://avatars.discourse-cdn.com/v4/letter/a/0ea827/32.png) [@Amanda\_Marti](https://forum.inductiveautomation.com/u/Amanda_Marti)\
**Post date:** [July 15, 2024, 3:33pm UTC](https://forum.inductiveautomation.com/t/how-to-create-a-dynamic-timeseries-chart/93234/3 "2024-07-15T15:33:32Z")

</div>

Thank you for your quick answer! I’ll check it right now
