  }]
                };


            },
            draw: function () {
                chart.init_option();
                for (var k in chart.options) {
                    if (chart.options.hasOwnProperty(k)) {
                        var vt = echarts.init(document.getElementById('chart_' + k), 'dark');
                        vt.setOption(chart.options[k]);
                    }
                }
            }
        };
        chart.draw();
    </script>
{% endblock %}