How to modify XY Chart tag history binding based on dropdown selection

Here’s my dropdown (on top) and XY Chart.

Here’s my existing (fixed) binding.

How would I replace the contents of the red box with the option value selected in the dropdown?

With Script Transform

You should take a look at the Tag History Bindings portion of the user manual. The “Using Dynamic Tag Paths” section gives a good example to get you started. I would just bind a custom property to the dropdown’s value property and use a script transform to build out your tag key properties based on that, append them a list, then reference that custom list property in your tag selection expression on the tag history binding.

Edit (screenshots for clarity):

Which should return:

1 Like