# Error with Sparkline's Desired Range

**URL:** <https://forum.inductiveautomation.com/t/error-with-sparklines-desired-range/32407>\
**Category:** Ignition Early Access\
**Tags:** perspective\
**Created:** [February 19, 2020, 2:04am UTC](https://forum.inductiveautomation.com/t/error-with-sparklines-desired-range/32407 "2020-02-19T02:04:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![swolnisty](https://avatars.discourse-cdn.com/v4/letter/s/7bcc69/32.png) [@swolnisty](https://forum.inductiveautomation.com/u/swolnisty)\
**Post date:** [February 19, 2020, 2:04am UTC](https://forum.inductiveautomation.com/t/error-with-sparklines-desired-range/32407/1 "2020-02-19T02:04:40Z")

</div>

I’ve run across an issue with the sparkline component where the desired range is displayed when there is no reason for it. When the desired high and low values are outside of the overall range of the sparkline, a shaded area is displayed on the sparkline (in this case, at the bottom):

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

This can be handled easily enough by either adding logic into bindings on the desired high and low values that either set them to empty strings or the same value as the overall range low value when no desired range should be displayed, but it feels like a step that shouldn’t be necessary.

---

<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:** [February 25, 2020, 5:12pm UTC](https://forum.inductiveautomation.com/t/error-with-sparklines-desired-range/32407/2 "2020-02-25T17:12:12Z")

</div>

I experience the same thing and brought it up a while ago

> [@\[FEATURE-14434\] Perspective Sparkline Range won't expand](http://forum.inductiveautomation.com/t/feature-14434-perspective-sparkline-range-wont-expand/26438/3):
>
> 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]

@ynejati responded but I still don't think the desired line(s) should be visible if either are outside the actual range.

In some cases I have a broad desired limit and tight data that is approaching a lower limit. I don't think their should be a desired range line visible on the top of the graph if the desired upper limit is well above the actual range being displayed. I really gives a visual indicator that the upper limit is a lot lower than it actually is and it also appears to change if the range increases.
