Steps to reproduce: 1) Create host. 2) Create item. 3) Create graph. 4) Navigate to Data collection->Hosts->Graphs. In the graph add the item twice. 5) Change items order (second should be on first place now). 6) Try to change color for second item.
Result:
Expected: Correctly changed items' color.