Hi, I am using the Tag Browse Tree and Easy Chart components to create dynamic trends and would like to have the option of using multiple Y-axes to have multiple scales in the same chart.
How can I set up multiple axes for the Easy Chart by dragging tags from the Tag Browse Tree component to an Easy Chart in a simple way?
The EasyChart uses its axes
configuration dataset property to hold the possible axes the pens can use.
Your pens, whether historian pens in the tagPens
dataset property, or database pens in the pens
dataset property, refer to axes by name from the config property.
There is no simple way, as you must override the drag-n-drop action on the chart to customize the action. Your custom action will need to examine the tag information received, decide what axis to use (entirely on you--perhaps with tag custom properties), and ensure the named axis is present in the axes
dataset. Then add the tag to one of the two pen datasets.
It isn't rocket science, but there are many steps in each operation. Consider studying the scripts in the Vision ad-hoc charting project in the Exchange.
Here's the link to the ad hoc trend resource Phil referred to:
Ignition Exchange: Ad Hoc Trend for Vision