    cx: zrX - dx,
                            cy: zrY - dy
                        });
                    }
                });

                document.addEventListener('mouseup', function (e) {
                    if (dragging) {
                        zr.remove(dragging);
                        dragging = null;
                    }
                });

                function getHoveredDataIndex(params) {
                    return params.componentType === 'series'
                        && params