score:1

Accepted answer

You can wrap zIndexSetter method to call it only if the element is not a path:

(function(H) {
    H.wrap(H.SVGElement.prototype, 'zIndexSetter', function(proceed, value, key, el) {
        if (!el || (el && el.tagName !== 'path')) {
            return proceed.apply(this, Array.prototype.slice.call(arguments, 1));
        }
    });
}(Highcharts));

Live demo: https://jsfiddle.net/BlackLabel/31a0x4sL/

Docs: https://www.highcharts.com/docs/extending-highcharts


Related Query

More Query from same tag