Setting up a Time Series chart - Help-

Good day! Im needing to set up a time series chart in perspective. Should i bind the series or the data to tag history?

Hi @mjohnson0238, this should help: Time Series Chart - Perspective Chart Components

If you need more information, please let me know.

I realize this is an older topic, but this is my first foray into working with charts in Perspective. I read the Docs, follow the example, but I get nothing displayed on the chart.

If I change the tag to a normal tag binding, I get an error that states the chart is expecting an object. So, back to the Tag History, check the dataset icon, and the value column, whatever is supposed to be there, is blank. Also, the docs show three columns in their dataset. I am using Tags>Sample_Tags>Realistic0,1,2.

I can see the tag values changing in the Tag Browser, so I know there is something there.

In the Gateway config, I see the Tag Historian module is running (this is a dev/trial license).

So, I'm not sure what I am missing here.

Ah, I think I got it. Resetting the trial version might have had something to do with it, :man_facepalming:

EDIT:
Well, now I can't get it to work again. I tried moving the tag binding to a production tag, got nothing, then back to the sample tag, and have nothing still... Not sure what the deal is.

2nd EDIT: So the Realistic0 tag outputs empty data for the value, but a normal direct tag binding to a custom prop displays the value as it changes. Now to find a production tag that I can display...

Tag binding, direct or indirect, is just for live values. Charts need history bindings. The Power Chart does its own history bindings under the hood, but the pen definitions have to include the details needed for those internal history bindings. Other charts require actual history bindings, or scripted equivalents.

1 Like

Is it possible to chart without any history? Could a chart itself keep the history as it scrolls, say through 60 minutes, and plot the live values when polled?

See my Integration Toolkit's recorder() expression function. If you expect to use it in multiple places, consider putting this in an expression tag adjacent to the tag(s) of interest. If you will use it with various tags on a per-session basis, with the UI flipping away and coming back to the view, consider binding it to a session custom property.

I think I'm using the wrong chart anyway, for what I would like to do.
I am going to try the Power Chart. Allowing for multiple "pens", zoom, easier ranging, etc.

There are a couple of other things I was not aware of using tags, and how they would "communicate" with the DB. I appreciate your input as always!

That only charts from history. You cannot supply raw data to it.

Yep, which means I will be creating a new DB just for testing the tag history stuff out.

And it is more like the Easy Chart in Vision, which we want to have that kind of functionality and features. But I wasn't aware of the Power Chart vs Time Series until today.

See some of the issues with Power Chart here: [FEATURE] Increase usability of the Perspective Power Chart component.

1 Like