Dynamic path in multipen Power Chart (history binding). Dataset looks fine but no plots

Hiya experts!
I'm trying to get to grips with power charts with Historical tag bindings.

From the forum it seems we are to construct an array (alias, aggregate, path) to the pens binding.

The bindings seem to work:

And the data set pulls through fine:

When I bind the path of the dynamic path tag from view level to the pen DataSource; it works fine.

What am I missing?
Is this a good application for Power trend or is Time series more suitable?

Any help appreciated!
Thanks!
D

Hi all!
Still stuck with this one, not sure if I am explaining the problem clearly/correctly?
Any feedback on clarity appreciated :slightly_smiling_face:
Thanks,
D

Can you show what you're (not) seeing on the chart and what the data property actually looks like in the property editor?

1 Like

Hi Paul, thanks for looking into this.

The chart is simply blank (no data selected message):


The data property (in fact all) disappears as soon as pens are binded to key structure:

Please let me know if this is what you meant.

I've noticed when I bind [key] to a time series chart's series property it works as intended.

Thanks again,
D

make your custom.key property match the expected format:

That should fix the issue I guess ?

edit:
While this is marked as solution, it's actually not accurate.
If you end up here looking for a solution to a similar issue, keep reading, the posts below all hold a part of the final solution.

Thanks @pascal.fragnoud
This does not resolve the issue, though it does seem intuitive what you are suggesting.
I want to achieve what is described in:

Tag history bindings.

I believe this is the correct workflow, I suspect I'm just missing something.

Oh okay I see.
So there are 2 things here:

  1. the history binding
  2. the binding on the powerchart

So you got the first part right. You're just not putting it where it should be.
Instead of putting that history binding on the pen property, you need to put it on the pen[0].data property.

2 Likes

Thanks @pascal.fragnoud that makes a wee bit more sense... I can feel it getting closer!

Sadly, still no plot on my side:

Any more thoughts? :thinking:

The Power Chart cannot take datasets of data to plot. It only takes pen configurations that include the information need for the Power Chart to make its own history queries.

1 Like

Thanks @pturmel, I am not sure why an actual dataset is parsed to pen[0].data.
key is an object defining paths.

Is there a way to change the binding to hold something different to a dataset or is what I'm trying to achieve not possible in a Power Chart?

The point is that you don't ever use history bindings with the power chart. Where you are constructing a custom property that drives a history binding, you should instead be constructing the props.pens property with similar information (the history selections), but including the pen display options.

Consider backing off to a new Power Chart and using its native tools to add a pen. Examine how that sets up props.pens (and props.plots and props.axes) and do the same with your dynamic tag list.

2 Likes

OK I've finally caught on, thanks everyone for the patience!
We need to give Power Charts more than just a path, very much like @pascal.fragnoud suggested.

Thanks also @pturmel for the great suggestion.
I made a pen with navigation, binded my dynamic view level path to data.source and ctrl+c/vit for every pen I need; so, we're steaming!

1 Like