Sparkline in Popup

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

image

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

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 and Inductive University (free) if you haven't already.

1 Like

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.

1 Like