# \[IGN-2412\] XY Chart drag drop reordering series

**URL:** <https://forum.inductiveautomation.com/t/ign-2412-xy-chart-drag-drop-reordering-series/72703>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [April 20, 2023, 2:26pm UTC](https://forum.inductiveautomation.com/t/ign-2412-xy-chart-drag-drop-reordering-series/72703 "2023-04-20T14:26:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![zacharyw.larson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/zacharyw.larson/32/23749_2.png) [@zacharyw.larson](https://forum.inductiveautomation.com/u/zacharyw.larson)\
**Post date:** [April 20, 2023, 2:26pm UTC](https://forum.inductiveautomation.com/t/ign-2412-xy-chart-drag-drop-reordering-series/72703/1 "2023-04-20T14:26:36Z")

</div>

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/5/5/551071e3d6d8808826050eb1a71e896cf616619f.png)

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.

V 8.1.19

---

<div class="post-metadata">

**Author:** ![andrew.budaiev](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/andrew.budaiev/32/72921_2.png) [@andrew.budaiev](https://forum.inductiveautomation.com/u/andrew.budaiev)\
**Post date:** [April 21, 2023, 12:41am UTC](https://forum.inductiveautomation.com/t/ign-2412-xy-chart-drag-drop-reordering-series/72703/2 "2023-04-21T00:41:33Z")

</div>

It's not only in XY Chart.

> [@Perspective: How can I reorder array elements \*\*and maintain bindings\*\*?](https://forum.inductiveautomation.com/t/perspective-how-can-i-reorder-array-elements-and-maintain-bindings/40011/12):
>
> 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…

> [@\[BUG\] Bindings on props within array items don't stay with their associated array item if moved to a new array index](https://forum.inductiveautomation.com/t/bug-bindings-on-props-within-array-items-dont-stay-with-their-associated-array-item-if-moved-to-a-new-array-index/35578/7):
>
> 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:

> [@\[FEATURE\] Perspective: Allow reordering of property array elements and maintain bindings](https://forum.inductiveautomation.com/t/feature-perspective-allow-reordering-of-property-array-elements-and-maintain-bindings/40012):
>
> 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.

> [@\[BUG\] Bindings on props within array items don't stay with their associated array item if moved to a new array index](https://forum.inductiveautomation.com/t/bug-bindings-on-props-within-array-items-dont-stay-with-their-associated-array-item-if-moved-to-a-new-array-index/35578):
>
> Hello, 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, …

> [@Perspective: How can I reorder array elements \*\*and maintain bindings\*\*?](https://forum.inductiveautomation.com/t/perspective-how-can-i-reorder-array-elements-and-maintain-bindings/40011):
>
> v8.1.0rc1 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…

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [April 21, 2023, 4:19am UTC](https://forum.inductiveautomation.com/t/ign-2412-xy-chart-drag-drop-reordering-series/72703/3 "2023-04-21T04:19:03Z")

</div>

The bug is with reordering _any_ array items. There are two bugs:

1. Bindings don't move with the items they're bound to, they stay attached to the same index. Very unintuitive and frustrating
2. 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
