# \[Feature-15417\] Perspectives Slider seems laggy

**URL:** <https://forum.inductiveautomation.com/t/feature-15417-perspectives-slider-seems-laggy/29764>\
**Category:** Ignition Early Access\
**Created:** [November 7, 2019, 6:44pm UTC](https://forum.inductiveautomation.com/t/feature-15417-perspectives-slider-seems-laggy/29764 "2019-11-07T18:44:24Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![weertske](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/weertske/32/3353_2.png) [@weertske](https://forum.inductiveautomation.com/u/weertske)\
**Post date:** [November 7, 2019, 6:44pm UTC](https://forum.inductiveautomation.com/t/feature-15417-perspectives-slider-seems-laggy/29764/1 "2019-11-07T18:44:24Z")

</div>

On this page, I have a slider the output of which is bound to 4 realtime tag historian queries (to build the chart) and a text expression (to show the time span). Dragging the slider is very laggy. Any suggestions?

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/e/ee935cf2c3901d4ddd67a46cc93082e7864b4821.png)

---

<div class="post-metadata">

**Author:** ![alexlu](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/alexlu/32/65795_2.png) [@alexlu](https://forum.inductiveautomation.com/u/alexlu)\
**Post date:** [November 8, 2019, 10:57pm UTC](https://forum.inductiveautomation.com/t/feature-15417-perspectives-slider-seems-laggy/29764/2 "2019-11-08T22:57:01Z")

</div>

The slider component appears to be laggy because your queries are being rerun constantly as the slider value actively changes when dragged. I’ve created a feature ticket to add a Defer Updates mode option on the component so that the value will only update once it’s not actively changing. In the meantime, I would suggest using a different component like numeric entry field to output a single fixed value for the desired time span.

---

<div class="post-metadata">

**Author:** ![weertske](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/weertske/32/3353_2.png) [@weertske](https://forum.inductiveautomation.com/u/weertske)\
**Post date:** [November 9, 2019, 1:27am UTC](https://forum.inductiveautomation.com/t/feature-15417-perspectives-slider-seems-laggy/29764/3 "2019-11-09T01:27:11Z")

</div>

Thank you.

---

<div class="post-metadata">

**Author:** ![Janne](https://avatars.discourse-cdn.com/v4/letter/j/f19dbf/32.png) [@Janne](https://forum.inductiveautomation.com/u/Janne)\
**Post date:** [November 9, 2019, 6:07am UTC](https://forum.inductiveautomation.com/t/feature-15417-perspectives-slider-seems-laggy/29764/4 "2019-11-09T06:07:37Z")

</div>

You have pen names (legend) in the chart. Can you select/deselect pens with this chart similar way as in XY Chart?

Based on my knowledge, this chart type does not support selectable pens, or does it?

Thank you in advance,  
Janne

---

<div class="post-metadata">

**Author:** ![nader.chinichian](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nader.chinichian/32/9261_2.png) [@nader.chinichian](https://forum.inductiveautomation.com/u/nader.chinichian)\
**Post date:** [November 10, 2019, 7:42pm UTC](https://forum.inductiveautomation.com/t/feature-15417-perspectives-slider-seems-laggy/29764/5 "2019-11-10T19:42:32Z")

</div>

I use similar method but I minimize the tick step to 1 hours step for last 24 hours. If you decrease the step it will help a lot.  
you can use a button next to slider to put the slider final value to history query

---

<div class="post-metadata">

**Author:** ![weertske](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/weertske/32/3353_2.png) [@weertske](https://forum.inductiveautomation.com/u/weertske)\
**Post date:** [November 10, 2019, 9:02pm UTC](https://forum.inductiveautomation.com/t/feature-15417-perspectives-slider-seems-laggy/29764/6 "2019-11-10T21:02:31Z")

</div>

I wish it had a select/deselect feature. I added check boxes to the left that turn the trends on/off. This works as long as you only have one pen per axis. For other pens that you want to use the same axis, create a new axis with the same scale and just make it invisible by setting the width to -1. Not the best solution but it works for now.

---

<div class="post-metadata">

**Author:** ![weertske](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/weertske/32/3353_2.png) [@weertske](https://forum.inductiveautomation.com/u/weertske)\
**Post date:** [November 10, 2019, 9:04pm UTC](https://forum.inductiveautomation.com/t/feature-15417-perspectives-slider-seems-laggy/29764/7 "2019-11-10T21:04:36Z")

</div>

I did similar by setting my steps to 5 minutes. A deferred action will be much better. I might build a script into the slider to create the deferred affect.

---

<div class="post-metadata">

**Author:** ![weertske](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/weertske/32/3353_2.png) [@weertske](https://forum.inductiveautomation.com/u/weertske)\
**Post date:** [November 10, 2019, 10:17pm UTC](https://forum.inductiveautomation.com/t/feature-15417-perspectives-slider-seems-laggy/29764/8 "2019-11-10T22:17:10Z")

</div>

Deferring it was too easy. Add the following to an onClick event. Not sure how that work with a mobile device.

self.custom.defValue = self.props.value
