# \[Bug-3518\] Perspective Time Series Chart Error when changing tag source while pan zoom

**URL:** <https://forum.inductiveautomation.com/t/bug-3518-perspective-time-series-chart-error-when-changing-tag-source-while-pan-zoom/54281>\
**Category:** Ignition\
**Created:** [December 19, 2021, 5:59pm UTC](https://forum.inductiveautomation.com/t/bug-3518-perspective-time-series-chart-error-when-changing-tag-source-while-pan-zoom/54281 "2021-12-19T17:59:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![nicholas.robinson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nicholas.robinson/32/22188_2.png) [@nicholas.robinson](https://forum.inductiveautomation.com/u/nicholas.robinson)\
**Post date:** [December 19, 2021, 5:59pm UTC](https://forum.inductiveautomation.com/t/bug-3518-perspective-time-series-chart-error-when-changing-tag-source-while-pan-zoom/54281/1 "2021-12-19T17:59:40Z")

</div>

We have a dashboard that allows the user to look at flow stops. By default the conveyor with the longest flow stop time is shown. However, by clicking on the on each conveyor, the source tag on the time series is changed.

This works when the chart is at default zoom or when a zoom has been done and returned to full view. But, when changing the source tag when the chart is zoomed in, a component error occurs.

So the questions are:

1. Is this a bug or know issue?
2. via scripting, do we have an option to remove any pan zoom level to prevent this error?

What I’m thinking is if we can remove the zoom in before changing the tag source it may prevent this.

**Normal View**

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/c/f/cf77ee208d04fc14003deb8e47ca566786a438b5.png)

**Zoomed In**

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/3/8/3829518b64cdb117bb9baa8999e000751c4184d4.png)

**Error When Selecting Different Tag Source while zoomed in**

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/a/c/accc39d8a558c427af2a959121fccd10faadf226.png)

Thanks,

Nick

---

<div class="post-metadata">

**Author:** ![mojoeswa](https://avatars.discourse-cdn.com/v4/letter/m/45deac/32.png) [@mojoeswa](https://forum.inductiveautomation.com/u/mojoeswa)\
**Post date:** [February 7, 2022, 8:30pm UTC](https://forum.inductiveautomation.com/t/bug-3518-perspective-time-series-chart-error-when-changing-tag-source-while-pan-zoom/54281/2 "2022-02-07T20:30:26Z")

</div>

I have the same problem. Did you solve it?

---

<div class="post-metadata">

**Author:** ![nicholas.robinson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nicholas.robinson/32/22188_2.png) [@nicholas.robinson](https://forum.inductiveautomation.com/u/nicholas.robinson)\
**Post date:** [February 7, 2022, 8:51pm UTC](https://forum.inductiveautomation.com/t/bug-3518-perspective-time-series-chart-error-when-changing-tag-source-while-pan-zoom/54281/3 "2022-02-07T20:51:52Z")

</div>

@mojoeswa for now they have noted that it is a problem but have not yet provided any solution other than making sure you zoom out before changing the source data.

Cheeers,

Nick

---

<div class="post-metadata">

**Author:** ![RH\_AMINE](https://avatars.discourse-cdn.com/v4/letter/r/4bbf92/32.png) [@RH\_AMINE](https://forum.inductiveautomation.com/u/RH_AMINE)\
**Post date:** [April 29, 2022, 9:19am UTC](https://forum.inductiveautomation.com/t/bug-3518-perspective-time-series-chart-error-when-changing-tag-source-while-pan-zoom/54281/4 "2022-04-29T09:19:36Z")

</div>

hi, any update on this problem?  
I got the same problem, when i go in the view for the 1st time it works, but if i go back to select an other source the error shows up ,  
error in the browser console :  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/c/5/c5c3cdb46e2d79d1fb4f0bf70da0778aa56b7f64.png)

I used a query to get the dataset order correctly, then I added a dataset.sort to make sure.

update : The problem was caused by the previous dataset in the view parameter. I cleaned when leaving, and it worked
