They request for the opposite order I had.
So I grabbed these guys and moved them around.
2 ended up stacked somehow, and one of them lost it's color, data references, and bindings just completely overwritten by one of the others.
The label bindings didn't move at all.
I ended up duplicating the old page, and copy pasting things series from one to the other instead of using the drag to move.
I think there must be like a drag on top of function vs drag to drop between function that I might have missed maybe, and the bindings not moving. It was odd for me anyway.
It's not only in XY Chart.
You can re-order by dragging array elements. As
@jlandwerlen suggested, you need to click-hold to the right of the element you’d like to re-arrange. This will NOT bring the binding along. You can’t supply a binding base don arbitrary relative positions to change if the position changes.
When you set up a binding within an array, it’s defined in the schema as custom.my_array[x].some_key. dragging the element to a different position results in the binding pointing to the original position because…
There’s another thread on this topic somewhere. Not handy, sorry. Bottom line: it is expected and fundamental behavior of bindings where an array is involved. The binding targets a specific subscript in the array. Move elements around and the binding is now pointing at the “wrong” element.
Don’t expect a fix any time soon, if ever.
Also some topics I found:
Currently you can rearrange array elements, however bindings aren’t kept intact - they stay with the array index and not with the element you’re moving.
I’m encountering a bug and didn’t know where to report it. It’s easy enough to work around, so I didn’t bother submitting a support ticket.
I have some parameters I’m passing to an embedded view (using perspective). These parameters include an array of objects:
One of these objects (object 4) has a binding on one of its values (position). If I duplicate an object above object 4, Ignition appropriately increments the number of the objects below where the duplicated object is, …
Is there any way to rearrange property array elements and still keep the bindings intact within each array element’s objects? The only way I know of to rearrange elements is by copy/paste to text editor, rearrange, copy/paste back on top in Ignition, however this method doesn’t keep bindings intact…
The bug is with reordering
any array items. There are two bugs:
Bindings don't move with the items they're bound to, they stay attached to the same index. Very unintuitive and frustrating
When you move an item, there are all of a sudden two items with the same index. You need to click off the component and back into it, otherwise, from memory, you end up with the contents of one of the two items being overwritten by the other