# \[BUG\] TimeSeriesChart breaks when dataset updates when zoomed in

**URL:** <https://forum.inductiveautomation.com/t/bug-timeserieschart-breaks-when-dataset-updates-when-zoomed-in/30477>\
**Category:** Ignition Early Access\
**Created:** [December 5, 2019, 8:09pm UTC](https://forum.inductiveautomation.com/t/bug-timeserieschart-breaks-when-dataset-updates-when-zoomed-in/30477 "2019-12-05T20:09:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![paul.longtine](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul.longtine/32/10599_2.png) [@paul.longtine](https://forum.inductiveautomation.com/u/paul.longtine)\
**Post date:** [December 5, 2019, 8:09pm UTC](https://forum.inductiveautomation.com/t/bug-timeserieschart-breaks-when-dataset-updates-when-zoomed-in/30477/1 "2019-12-05T20:09:56Z")

</div>

![Capturegrr](https://us1.discourse-cdn.com/inductiveautomation/original/2X/3/32fdf4e5faf8b53c4d91947164f29b827ca10265.png)

I get this error when the chart is zoomed in and when the underlying dataset updates.

I’m running version 8.0.6 (b2019111216)

Thanks

---

<div class="post-metadata">

**Author:** ![jball](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jball/32/11128_2.png) [@jball](https://forum.inductiveautomation.com/u/jball)\
**Post date:** [December 5, 2019, 10:30pm UTC](https://forum.inductiveautomation.com/t/bug-timeserieschart-breaks-when-dataset-updates-when-zoomed-in/30477/2 "2019-12-05T22:30:39Z")

</div>

Hi @paul.longtine, any other steps to replicate besides zooming in on a dataset update? What type of dataset are you using (Tag History, DB Query, etc)? Any other config that might be worth noting?

---

<div class="post-metadata">

**Author:** ![paul.longtine](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul.longtine/32/10599_2.png) [@paul.longtine](https://forum.inductiveautomation.com/u/paul.longtine)\
**Post date:** [December 5, 2019, 11:06pm UTC](https://forum.inductiveautomation.com/t/bug-timeserieschart-breaks-when-dataset-updates-when-zoomed-in/30477/3 "2019-12-05T23:06:35Z")

</div>

The dataset is from a Tag History binding. When the dataset updates there is a column added (inserting another tag path to the history query, specified with a reduced column header name). The TimeSeriesChart component configuration has an individual trend for every possible column that could exist in the Tag History query, where each trend uses an individual axis that specifies the min/max values. The entire configuration of the TimeSeriesChart is static besides configuring the ‘visible’ property of a trend when the user selects which datapoints to trend. Such that, when another tag is added to the tag history query, the trend corresponding to that particular tag becomes visible. All other configuration is static other than the `visible` property for each `plots[0].trends[n]`. The configuration is complete static for each `plots[0].axes[n]` besides the `plots[0].axes[n].min` and `plots[0].axes[n].max` which on certain axes get a computed value from a property binding.

The screenshot I provided is rendered in Firefox, which has a very unspecific error message as depicted. This issue also appears in Chrome. The error message that appears when rendering the page in Chrome displays “Cannot read property ‘normal’ of undefined” in Chrome, which leads me to believe `plots[0].trends[n].columns[0].styles` is somehow null once it gets into the chunk of code the browser runs?

---

<div class="post-metadata">

**Author:** ![jball](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jball/32/11128_2.png) [@jball](https://forum.inductiveautomation.com/u/jball)\
**Post date:** [December 6, 2019, 6:09pm UTC](https://forum.inductiveautomation.com/t/bug-timeserieschart-breaks-when-dataset-updates-when-zoomed-in/30477/4 "2019-12-06T18:09:56Z")

</div>

Thanks Paul, I appreciate the background info! Would you be willing to DM me a copy of a project backup so I can reproduce the error?
