# 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:** 1\
**Showing post:** 2

<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…

---

_[View the full topic](https://forum.inductiveautomation.com/t/how-to-create-a-dynamic-timeseries-chart/93234)._
