{data: legendData},
                                series: {data: data}
                            });
                        }
                    }
                });

                mainEl.addEventListener('mousemove', function (e) {
                    var box = mainEl.getBoundingClientRect();
                    var zrX = e.clientX - box.left;
                    var zrY = e.clientY - box.top;

                    if (dragging) {
                        dragging.setShape({
                        