# Gaps in tag trends

**URL:** <https://forum.inductiveautomation.com/t/gaps-in-tag-trends/65067>\
**Category:** Ignition\
**Tags:** ignition81, vision\
**Created:** [October 11, 2022, 2:23pm UTC](https://forum.inductiveautomation.com/t/gaps-in-tag-trends/65067 "2022-10-11T14:23:02Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![pgmo](https://avatars.discourse-cdn.com/v4/letter/p/d07c76/32.png) [@pgmo](https://forum.inductiveautomation.com/u/pgmo)\
**Post date:** [October 11, 2022, 2:23pm UTC](https://forum.inductiveautomation.com/t/gaps-in-tag-trends/65067/1 "2022-10-11T14:23:02Z")

</div>

I'm trending pressure PV and SP at a pump.I'm experiencing the following issue: the trend in the _Easy Chart_ randomly shows gaps in one of the two measures (not always the same measure), while the other keeps being printed correctly - sometimes those gaps are as wide as 5/6 days.  
If I select the raw data from the database table e.g. for the SP value I get the following list:  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/4/8/4826782f3f9fddc60ce27722eb1143164707c821.png)  
If I compare the gaps with the values in the list, I really cannot catch any relationship.  
A colleague of mine suggested to check the _Disable Tag History Data Cache_ in the project properties, but it does not seam to take me further

Any suggestion is appreciated!

Thanks in advance, regards

Ignition version **8.1.19 (b2022072711)**

---

<div class="post-metadata">

**Author:** ![franklepkowski](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/franklepkowski/32/4808_2.png) [@franklepkowski](https://forum.inductiveautomation.com/u/franklepkowski)\
**Post date:** [October 11, 2022, 6:34pm UTC](https://forum.inductiveautomation.com/t/gaps-in-tag-trends/65067/2 "2022-10-11T18:34:33Z")

</div>

Your gaps are being caused by tag quality being some value other than good. You can tweak chart settings to interpolate these gaps. Check the documentation.

---

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [October 11, 2022, 8:54pm UTC](https://forum.inductiveautomation.com/t/gaps-in-tag-trends/65067/3 "2022-10-11T20:54:02Z")

</div>

Specifically, look into the [Allow Tag History Interpolation](https://docs.inductiveautomation.com/display/DOC81/Vision+-+Easy+Chart#:~:text=Allow%20Tag%20History%20Interpolation) setting.

---

<div class="post-metadata">

**Author:** ![pgmo](https://avatars.discourse-cdn.com/v4/letter/p/d07c76/32.png) [@pgmo](https://forum.inductiveautomation.com/u/pgmo)\
**Post date:** [October 12, 2022, 9:18am UTC](https://forum.inductiveautomation.com/t/gaps-in-tag-trends/65067/4 "2022-10-12T09:18:27Z")

</div>

> [@franklepkowski](#):
>
> Your gaps are being caused by tag quality

Hi Frank, if your suggestion is pointing to the **600** values in the `dataintegrity` field, I'm not sure that is the cause: I cannot see any relationship at all between those _600_s and the missing portions of trend.  
Anyway I will try what @cmallonee is suggesting and I will back to you.

Thanks, regards

---

<div class="post-metadata">

**Author:** ![pgmo](https://avatars.discourse-cdn.com/v4/letter/p/d07c76/32.png) [@pgmo](https://forum.inductiveautomation.com/u/pgmo)\
**Post date:** [October 20, 2022, 3:57pm UTC](https://forum.inductiveautomation.com/t/gaps-in-tag-trends/65067/5 "2022-10-20T15:57:08Z")

</div>

Hi @cmallonee, I'm back on this topic after a while. I've just started a new project, this time a _Perspective_ project. I must say I'm really upset this time, because the same gap problems appear in the Perspective _PowerChart_ component too. Just for test I'm trending _Memory_ tags - tag quality is constant and _Good_. Nontheless the trend is showing gaps, whereas all samples appear with `dataintegrity=192` in the `sqlt_data_xxxxx` trend table. Same behavior in a _Vision_ page with an _EasyChart_.  
Sorry, but I'm really starting to loose confidence in the Ignition chart components.  
Any suggestion is appreciated, regards

Version: **8.1.21 (b2022092908)**

---

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [October 20, 2022, 4:14pm UTC](https://forum.inductiveautomation.com/t/gaps-in-tag-trends/65067/6 "2022-10-20T16:14:37Z")

</div>

When it comes to gaps in History, you should probably reach out to support instead of the forums, because there's almost always multiple things which could be happening - each of which requires a different approach.

> [@pgmo](#):
>
> same gap problems appear in the Perspective _PowerChart_ component too

This isn't surprising, because your data hasn't changed. Neither chart can make a guess as to what value is supposed to be displayed at a given point.

While using the Perspective Power Chart, you might need to manipulate the pen of the tag being charted; the default behavior of pens is to break the line where there is missing data:

 ![Screen Shot 2022-10-20 at 9.12.22 AM](https://us1.discourse-cdn.com/inductiveautomation/original/3X/5/0/5096a19e51af1e4098b5ab840b4df7cbd3bd1100.png)

Edit: This screenshot was taken by clicking the edit icon (pencil) of a displayed pen, then scrolling down in the resulting panel.

My suggestion is to spend some time researching how the charts are supposed to work when data is missing, and to also examine _why_ data is missing so that you can prevent the data loss and minimize the impact such loss can have on projects.

---

<div class="post-metadata">

**Author:** ![pgmo](https://avatars.discourse-cdn.com/v4/letter/p/d07c76/32.png) [@pgmo](https://forum.inductiveautomation.com/u/pgmo)\
**Post date:** [October 20, 2022, 4:25pm UTC](https://forum.inductiveautomation.com/t/gaps-in-tag-trends/65067/7 "2022-10-20T16:25:32Z")

</div>

Hi @cmallonee, thanks for your support. There's no data loss at all: next the data that Ignition collected from my tests:  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/4/7/4770be0392f470d60f5548f3590893d3b9b08c8e.png)

In the _PowerChart_ and in the _EasyChart_ as well values 4, 3, 6 do not appear in a 15 minutes time representation and if I tick the _Show a break in the line when data is missing_ prop, I just get a straight line from 5 to 2.  
I really cannot manage to see where the problem is, other than in the way the component is collecting and plotting the values.

---

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [October 20, 2022, 4:33pm UTC](https://forum.inductiveautomation.com/t/gaps-in-tag-trends/65067/8 "2022-10-20T16:33:54Z")

</div>

That screenshot doesn't tell me enough -- there's every possibility those returned values belong to a different tag or have a "non-good" quality (which would not be charted). Like I said previously, it seems like it is time to contact support because this could be a larger issue and the forums will not be able to help you do a deep-dive into what could be causing your issue.

---

<div class="post-metadata">

**Author:** ![pgmo](https://avatars.discourse-cdn.com/v4/letter/p/d07c76/32.png) [@pgmo](https://forum.inductiveautomation.com/u/pgmo)\
**Post date:** [October 20, 2022, 4:37pm UTC](https://forum.inductiveautomation.com/t/gaps-in-tag-trends/65067/9 "2022-10-20T16:37:25Z")

</div>

Sorry, you are right. Next the complete screenshot:

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

---

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [October 20, 2022, 4:40pm UTC](https://forum.inductiveautomation.com/t/gaps-in-tag-trends/65067/10 "2022-10-20T16:40:12Z")

</div>

That screenshot gives me much more important data, and does raise the question of why those valid points are not being charted. Unfortunately, all I can tell you is that _I_ would expect the chart to use those points, and that you should reach out to support. Please have a screenshot of the gaps you're referencing handy, along with a way to correlate the gaps to this data.

---

<div class="post-metadata">

**Author:** ![pgmo](https://avatars.discourse-cdn.com/v4/letter/p/d07c76/32.png) [@pgmo](https://forum.inductiveautomation.com/u/pgmo)\
**Post date:** [October 20, 2022, 4:58pm UTC](https://forum.inductiveautomation.com/t/gaps-in-tag-trends/65067/11 "2022-10-20T16:58:39Z")

</div>

Ok @cmallonee, thanks.  
Next the plot:

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/3/9/39b3f1b27249c8d2c046bc27dc35eebff50ad4a1.png)  
As you can see the plot stops at point ('15:32',5) and starts again at ('15:42',10).  
If I set the `breakLine` prop to `false` I get:  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/d/e/de400d6a8d4f2053316ef0f951dd6d9cc5ad09ac.png)  
I'm just realizing that trend is correct if I set the `breakLine` prop to `false` and the `interpolation` prop to `curevStepAfter`:  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/c/7/c785f0d20514164ff95be0329a1804df99295266.png)  
But there's no apparent reason for that behavior.

Thanks, regards
