# Indirect Tag-History Binding

**URL:** <https://forum.inductiveautomation.com/t/indirect-tag-history-binding/101746>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [February 3, 2025, 3:44am UTC](https://forum.inductiveautomation.com/t/indirect-tag-history-binding/101746 "2025-02-03T03:44:15Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Maryam\_Saeed](https://avatars.discourse-cdn.com/v4/letter/m/a5b964/32.png) [@Maryam\_Saeed](https://forum.inductiveautomation.com/u/Maryam_Saeed)\
**Post date:** [February 3, 2025, 3:44am UTC](https://forum.inductiveautomation.com/t/indirect-tag-history-binding/101746/1 "2025-02-03T03:44:15Z")

</div>

I need help regarding this.

I have a parameter with in my view which accesses details through indirect tag binding. I want to do the same for my timeseries chart. I tried tag history method, it's not working. Any tips?

---

<div class="post-metadata">

**Author:** ![David\_Stone](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/david_stone/32/79749_2.png) [@David\_Stone](https://forum.inductiveautomation.com/u/David_Stone)\
**Post date:** [February 3, 2025, 3:57am UTC](https://forum.inductiveautomation.com/t/indirect-tag-history-binding/101746/2 "2025-02-03T03:57:04Z")

</div>

> [@Indirect Tag History Binding in Perspective](https://forum.inductiveautomation.com/t/indirect-tag-history-binding-in-perspective/28673):
>
> I don’t see an option for indirect tag history binding in perspective. Am I missing something?

---

<div class="post-metadata">

**Author:** ![Maryam\_Saeed](https://avatars.discourse-cdn.com/v4/letter/m/a5b964/32.png) [@Maryam\_Saeed](https://forum.inductiveautomation.com/u/Maryam_Saeed)\
**Post date:** [February 3, 2025, 5:54am UTC](https://forum.inductiveautomation.com/t/indirect-tag-history-binding/101746/3 "2025-02-03T05:54:39Z")

</div>

> [@Sparkline Dynamic Tag History Expression Binding](https://forum.inductiveautomation.com/t/sparkline-dynamic-tag-history-expression-binding/44008):
>
> Hi, I would like to use a sparkline display along with my transmitter value in Perspective. My goal is to provide a tag path to the view that contains the transmitter and sparkline to make them interactive. The transmitter parameter passing works fine, but I cannot get the sparkline to work properly. According to this video, it should be possible to create a custom array of objects, with each object containing values for path, alias, and aggregate and use it in a Tag History Binding. The vi…

I came across this but my issue is a bit different. I have a vessel number and a path. Within my path I need to change my param. My values are in string format. Thus when I pass an object like this,  
[  
{  
path:   
alias:  
aggregate:  
}  
]

my chart reads my path in string but does not read my value in string

---

<div class="post-metadata">

**Author:** ![lrose](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/lrose/32/62724_2.png) [@lrose](https://forum.inductiveautomation.com/u/lrose)\
**Post date:** [February 3, 2025, 12:37pm UTC](https://forum.inductiveautomation.com/t/indirect-tag-history-binding/101746/4 "2025-02-03T12:37:11Z")

</div>

Can you show how you have configured your binding, how you are generating your expression, and how you are trying to display this information?

> [@Maryam\_Saeed](#):
>
> my chart reads my path in string but does not read my value in string

How do you expect a chart to display a string?

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [February 3, 2025, 1:49pm UTC](https://forum.inductiveautomation.com/t/indirect-tag-history-binding/101746/5 "2025-02-03T13:49:29Z")

</div>

Please see [Wiki - how to post code on this forum](https://forum.inductiveautomation.com/t/wiki-how-to-post-code-on-this-forum/77831).

---

<div class="post-metadata">

**Author:** ![Chris\_Bingham](https://avatars.discourse-cdn.com/v4/letter/c/e5b9ba/32.png) [@Chris\_Bingham](https://forum.inductiveautomation.com/u/Chris_Bingham)\
**Post date:** [February 3, 2025, 3:19pm UTC](https://forum.inductiveautomation.com/t/indirect-tag-history-binding/101746/6 "2025-02-03T15:19:07Z")

</div>

> [@Maryam\_Saeed](#):
>
> Within my path I need to change my param.

The original thread by @David_Stone contains a post with a portion of the path as dynamic.  
On your TimeSeriesChart component, create a custom property (an array of objects, with the structure manually built with the details of your tag(s) therein):

```python
[
  {
    "aggregate": "LastValue",
    "alias": "PV",
    "path": null
  }
]

```

Then, add an expression binding to your path. Here is a binding from the aforementioned thread:  
`'[default]'+{view.custom.line}+'speed'`  
Once everything is configured to your preference, add a Tag History binding on the `series[0].data` object, with an Expression to Select Tags as:  
`{this.custom.historical}` (the new property you created earlier.

Does this help? If not, screenshots of your setup would be very beneficial.

---

<div class="post-metadata">

**Author:** ![Maryam\_Saeed](https://avatars.discourse-cdn.com/v4/letter/m/a5b964/32.png) [@Maryam\_Saeed](https://forum.inductiveautomation.com/u/Maryam_Saeed)\
**Post date:** [February 4, 2025, 6:02am UTC](https://forum.inductiveautomation.com/t/indirect-tag-history-binding/101746/7 "2025-02-04T06:02:06Z")

</div>

My client was in a hurry to get a solution so I opted to extract values from DB using Vessel Number Param and extracting datasets on my chart, I am still curious how to do it as Indirect binding, will defiantly try your method

---

<div class="post-metadata">

**Author:** ![lrose](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/lrose/32/62724_2.png) [@lrose](https://forum.inductiveautomation.com/u/lrose)\
**Post date:** [February 4, 2025, 1:24pm UTC](https://forum.inductiveautomation.com/t/indirect-tag-history-binding/101746/8 "2025-02-04T13:24:48Z")

</div>

> [@Maryam\_Saeed](#):
>
> I opted to extract values from DB using Vessel Number Param

This sounds like you're manually querying Tag History Data, if that is the case, it is sure to break at some point. If that is what you're doing, I would strongly reconsider. It may work now, but eventually it will break for one reason or another, unless you're doing a lot of work to jump through partitioning hoops, which would be the opposite of "in a hurry".
