Join GitHub today
Exported to SVG charts can have the same id for clipPath and a wrong clipPath is used #5926
When exporting charts to SVG and then placing those SVGs into a site clipPath id is duplicated.
Live demo with steps to reproduce
The Highcharts object keeps track of the id's, so there will never be two items with the same id in the same page. This is handled through the Highcharts.idCounter, and definitions will have id's like
This system breaks if someone exports a chart from different pages and pastes the SVG into the same page. To prevent this situation we would have to extend the simple counter with a random hash that is (likely) unique to the Highcharts object on the page. Then everywere we run