echarts画图

1.地图

mychartProvinceMap.setOption({
                title: {
                    text: "标题"
                },
                tooltip: {
                    trigger: 'item',
                    formatter: function(p) {
                        return "悬浮";
                    }
                },

          //根据数值决定地图颜色 dataRange: { min:
0, max: 100, color: ['green', '#DCDCDC'], text: ['高', '低'], // 文本,默认为数值文本 calculable: true, x: 'right', y: 'bottom' }, series: [ { name: 'Map', type: 'map', map: "china", itemStyle:{ normal: { label: { show: false } }, emphasis: { areaColor: '#009688', label: { show: true, color: 'black' }, } }, data: mapData }] });

 

posted @ 2017-12-14 11:32  zxs2016  阅读(141)  评论(0编辑  收藏  举报