# Sparkline in Popup

**URL:** <https://forum.inductiveautomation.com/t/sparkline-in-popup/88457>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [April 6, 2024, 1:57am UTC](https://forum.inductiveautomation.com/t/sparkline-in-popup/88457 "2024-04-06T01:57:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Roman\_Rozenshteyn](https://avatars.discourse-cdn.com/v4/letter/r/838e76/32.png) [@Roman\_Rozenshteyn](https://forum.inductiveautomation.com/u/Roman_Rozenshteyn)\
**Post date:** [April 6, 2024, 1:57am UTC](https://forum.inductiveautomation.com/t/sparkline-in-popup/88457/1 "2024-04-06T01:57:18Z")

</div>

Hello all,  
I'm looking for a solution to create a trend inside one of my popups - direct rip-off from PlantPAx:

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/7/b/7ba1d64d32f88375ac9ddb504c6a4a8ade31da9a.png)

I have a sparkline in a popup which doesn't seem to update when the popup is open. Is this a known issue? I may be missing some key point, maybe an update rate or point count of something else.

The sparkline is pointing to a historian tag as the data source but, I'm not so concerned with the historical data. I'm just looking for a real-time chart that start when the view is open.

-thanks

---

<div class="post-metadata">

**Author:** ![ryan.white](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ryan.white/32/73193_2.png) [@ryan.white](https://forum.inductiveautomation.com/u/ryan.white)\
**Post date:** [April 6, 2024, 5:07am UTC](https://forum.inductiveautomation.com/t/sparkline-in-popup/88457/2 "2024-04-06T05:07:41Z")

</div>

How are you passing data to your popup? If you are just tossing the data into a parameter, it will only pass the data on initial opening of the popup.

If the data is coming from a tag, pass the tag path to the popup as a parameter, or the parts to build the path dynamically and then bind it in the popup.

If the data is coming from a query, have the query on the popup and pass some identifying data to the popup so the query knows what data to fetch.

I would recommend browsing through the [manual](https://www.docs.inductiveautomation.com/docs/8.1/ignition-modules/perspective/working-with-perspective-components/bindings-in-perspective/tag-bindings-in-perspective#indirect-tag-binding-mode) and [Inductive University](https://inductiveuniversity.com/) (free) if you haven't already.

---

<div class="post-metadata">

**Author:** ![jlandwerlen](https://avatars.discourse-cdn.com/v4/letter/j/bc8723/32.png) [@jlandwerlen](https://forum.inductiveautomation.com/u/jlandwerlen)\
**Post date:** [April 6, 2024, 4:55pm UTC](https://forum.inductiveautomation.com/t/sparkline-in-popup/88457/3 "2024-04-06T16:55:56Z")

</div>

Dynamic paths for tag history might be a little tricky if you are new to Perspective. The docs do show how to do it. See the link below and watch the video where they give an example.

> **[Tag History Bindings in Perspective | Ignition User Manual](https://www.docs.inductiveautomation.com/docs/8.1/ignition-modules/perspective/working-with-perspective-components/bindings-in-perspective/tag-history-bindings-in-perspective#tag-history-binding---expression)**
>
> Tag History Binding
