 chart.setOption(option, true);
                        });
                    }
                }
            });
        }

        </script>















        <script>
            makeChart('main1', {
                legend: {
                    data: ['no point', 'one point', 'two points'],
                    selectedMode: 'single'
                },
                tooltip: {
                    trigger: 'axis',
                    axisPointer: {
                        type: 'line'
           