 <div class="chart" id="grid"></div>




        <script>

            var COLORS = ["#070093", "#1c3fbf", "#1482e5", "#70b4eb", "#b4e0f3", "#ffffff"];

            function initPens(echarts, chart, data) {

                var currColorIndex = 0;
                var pens = $('#pens');

                COLORS.forEach(function (color, index) {
                    var penEl = $('<div></div>').css('background', color);
                    pens.append(penEl);
                    penEl.on('click', function () {
