Updating chart type changes series order #7397
In highstock with multiple series, when the series type is updated, it changes the order that series are appearing in. In the example, the blue line starts furthest back after updating, it moves to the front.
Am I doing something terribly wrong with updating the series type and/or is this the expected behavior?
Live demo with steps to reproduce
Non browser specific
The text was updated successfully, but these errors were encountered:
It happened because we destroy the groups when updating series type, and re-create them without a Z index, which means they were appended to the end. I can see no reason why to destroy the groups when we only have to update the Z index if the