Join GitHub today
Using chart.update to update series data/nodes for SANKEY results in appended instead of replaced node/dataLabel elements #8682
If using chart.update to update the series data and nodes for a sankey, both the links and node displays (including labels) are properly updated (removed/replaced as appropriate)
The links are properly updated with new options, with one accurate set of link paths; however for the nodes, including the labels for them, instead of a single updated set, the old sets remains and a new set of nodes/label elements are appended. After multiple updates there are many duplicated elements.
1st fiddle most closely represents use case trying to update for (changing color of a node programatically), 2nd fiddle is one where issues is more obvious visually, as opposed to needing to inspect elements - and that even if not included nodes specifically in update body, they are not accurately updated.
Live demo with steps to reproduce
Presumably all, but confirmed issue in