                        currColorIndex = index;
                    });
                });

                var drawing;
                var downing;
                chart.getZr().on('mousedown', function (e) {
                    downing = [e.offsetX, e.offsetY];
                });
                chart.getZr().on('mouseup', function (e) {
                    if (!downing) {
                        return;
                    }
                    if (Math.pow(e.offsetX - downing[0], 2) + Math.pow(e.offs