h(function (chartOption) {
                const dom = document.createElement('div');
                dom.className = 'chart';
                document.querySelector('#main').appendChild(dom);

                const chart = echarts.init(dom);

                chart.setOption(chartOption);
            });
        </script>
    </body>
</html>

