# \[FEATURE-14434\] Perspective Sparkline Range won't expand

**URL:** <https://forum.inductiveautomation.com/t/feature-14434-perspective-sparkline-range-wont-expand/26438>\
**Category:** Ignition Early Access\
**Created:** [July 10, 2019, 1:37pm UTC](https://forum.inductiveautomation.com/t/feature-14434-perspective-sparkline-range-wont-expand/26438 "2019-07-10T13:37:07Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![dkylep](https://avatars.discourse-cdn.com/v4/letter/d/6de8d8/32.png) [@dkylep](https://forum.inductiveautomation.com/u/dkylep)\
**Post date:** [July 10, 2019, 1:37pm UTC](https://forum.inductiveautomation.com/t/feature-14434-perspective-sparkline-range-wont-expand/26438/1 "2019-07-10T13:37:07Z")

</div>

I’ve been eagerly waiting an update to the Sparkline chart so I’ve downloaded the nightly version b2019070802 to test out the Sparkline enhancements.

One issue that I’ve run into is the Range will not expand beyond the data, is this intentional? I am able to contract the range but I can’t expand it beyond the dataset. This illustration shows what I mean.

When I add a new Sparkline to a view it’s default range is from 0 to 100 based on the default data.  
If I set the range to 15 to 85 it contracts.  
If I set the range to -100 to 200 the range does not expand beyond 0 to 100.

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

Interestingly, if you make the range low= 200 and high= -200 (yes, I know the high is negative and the low is positive) it inverts the data but the range does expand beyond the data.  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/7/7e5c9ea2eab9e8fc1c9667e3a96eb008b0bbcad9.png)

I would like to know if this behavior is intentional or if I should be able to make the range exceed the data.

The ideal behavior for my application would be to set a ‘Minimum Range’ so that the user can always see the “desired” high and low lines, even if the data is tight and well within the desired range. I called it a ‘minimum’ range because my preference would be the the range could still expand automatically if the data exceeded the minimum ranges set. But the range couldn’t get any smaller than the ‘minimum’ range set.

I would want it to look like this  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/5/5d03c308ba349c906527ef3b754835abd3eba7e0.png)  
and expand if the data exceeded the minimum range.  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/e/e337e030732bc8b84db06052d3b6909798550849.png)

---

<div class="post-metadata">

**Author:** ![ynejati](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ynejati/32/6093_2.png) [@ynejati](https://forum.inductiveautomation.com/u/ynejati)\
**Post date:** [July 10, 2019, 4:36pm UTC](https://forum.inductiveautomation.com/t/feature-14434-perspective-sparkline-range-wont-expand/26438/2 "2019-07-10T16:36:03Z")

</div>

Nope, not intentional. Just oversight on my part. Will try to get a fix in today. -Yousuf

---

<div class="post-metadata">

**Author:** ![dkylep](https://avatars.discourse-cdn.com/v4/letter/d/6de8d8/32.png) [@dkylep](https://forum.inductiveautomation.com/u/dkylep)\
**Post date:** [July 10, 2019, 5:09pm UTC](https://forum.inductiveautomation.com/t/feature-14434-perspective-sparkline-range-wont-expand/26438/3 "2019-07-10T17:09:27Z")

</div>

Awesome, thank you!

Another little quirk I noticed is when the desired limit is outside the range the line still appears in the graph.

For example if I have a desired high of 80 and the high range is set to 60 you can see the desired high line at the top of the graph. It appears as if the desired high is set to 60.  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/f/f9e256345fc70c9d75c206cc35f25cfc5d0b8dfb.png)

---

<div class="post-metadata">

**Author:** ![ynejati](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ynejati/32/6093_2.png) [@ynejati](https://forum.inductiveautomation.com/u/ynejati)\
**Post date:** [July 10, 2019, 5:29pm UTC](https://forum.inductiveautomation.com/t/feature-14434-perspective-sparkline-range-wont-expand/26438/4 "2019-07-10T17:29:19Z")

</div>

Right, the desired range cannot exceed the bounds of the set range, so the line will always appear on the chart.

---

<div class="post-metadata">

**Author:** ![ynejati](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ynejati/32/6093_2.png) [@ynejati](https://forum.inductiveautomation.com/u/ynejati)\
**Post date:** [July 10, 2019, 9:29pm UTC](https://forum.inductiveautomation.com/t/feature-14434-perspective-sparkline-range-wont-expand/26438/5 "2019-07-10T21:29:15Z")

</div>

Update has been merged and will be available in the next nightly. -Yousuf

---

<div class="post-metadata">

**Author:** ![dkylep](https://avatars.discourse-cdn.com/v4/letter/d/6de8d8/32.png) [@dkylep](https://forum.inductiveautomation.com/u/dkylep)\
**Post date:** [July 11, 2019, 9:05pm UTC](https://forum.inductiveautomation.com/t/feature-14434-perspective-sparkline-range-wont-expand/26438/6 "2019-07-11T21:05:31Z")

</div>

Just checked, expanding the ranges beyond the dataset is working well! Thank you.
