SOURCE

console 命令行工具 X clear

                    
>
console
var main = document.getElementById("main");
echarts.dispose(main);
var myChart = echarts.init(main);

var option = {
    backgroundColor: '#1988c8',
    title: {
        text: 'xxxxxxxx',
        subtext: 'xxxxxxxx',
        left: 'center',
        textStyle: {
            color: '#fff'
        }
    },
    geo: {
        map: '广东',
        label: {
            normal: {
                show: false
            },
            emphasis: {
                show: false
            }
        },
        roam: false,
        itemStyle: {
            normal: {
                areaColor: '#074980',
                borderColor: '#1988c8'
            },
            emphasis: {
                areaColor: '#074980',
                borderColor: '#1988c8'
            }
        },

    },
    // series: series
};

myChart.setOption(option);
<script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=Uz0SlweHGKLH11Qamb0GsjEj"></script>
<div id='main'>
</div>
html,
body,
#main {
    height: 100%;
    width: 100%;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

本项目引用的自定义外部资源