I have an easy chart object, and I would like the axis to automatically update according to an indirect tag.
When I call the window, I pass a tag path in as a custom parameter. This tag path points me to a UDT instance which has:
I can use cell binding to add the “Value” tag to the Tag Pens:
But I can’t find a way to do this to bind the Value_Min and ValueMax to the axis upper bound and lower bound. Is there a way?
Alternatively, I can try to script it. I understand that you can’t alter a dataset with scripting, but that you can use system.dataset.setValue to return a new dataset which is identical to the original except with your changes made. So, once I have this dataset, how do I make the Easy Chart look at my new DataSet for its Axes? I tried
AxesDataset = [path to trend].axes
MinScale = system.tag.read([path to tag]).value
MaxScale = system.tag.read([path to tag]).value
[path to trend].axes = AxesDataset
But so far no luck