I want to have two or more stacked Easy Charts that share the same time axis and allow pens to be dragged in from the Tag Browse Tree to any of the charts. I can't use sub plots because they only allow tags to be added to the first plot from the Browse Tree.
I thought I would use two separate Easy Charts but the Pens Control box resizes depending on the tags added and this resizes the chart area so that it no longer matches the other chart. I don't want to hide the Pen Control box because I want operators to be able to hide or remove pens as needed.
I have recently done this exact thing. I used a template repeater to hold the charts. I stored each chart to a udt tag and each repeaters template data to tags as well. I used a Tree View instead of the Tag Tree object and wrote custom functions to load the tags into the charts. Syncing the times is the hardest part as you need to write the times out to the repeater Template Parameters and then handle the property change on the chart template itself. If you receive the change on the originating chart, you don't want to fire it's property change again. This is not an easy task.
Thanks again for this. I tweaked the code @justinedwards.jle posted and now the chart checks the data type of the pens as they are dropped and puts Booleans on sub plot 2 and everything else on the sub plot 1. Works great