美文网首页
echarts 实现中国地图

echarts 实现中国地图

作者: _conquer_ | 来源:发表于2018-08-08 14:00 被阅读0次

实现效果如下


地图
<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title></title>
        <script src="js/echarts.js"></script>
        <script src="js/china.js"></script>
    </head>
    <body>
        <div id="main" style="width: 1200px;height: 700px;margin: 0 auto;"></div>
        <script>
             //初始化echarts实例
             var myChart = echarts.init(document.getElementById('main'));
             //使用制定的配置项和数据显示图表
             myChart.setOption(
                 {
                    //提示框组件
                    tooltip: {
                        show: false,//是否显示组件
                        trigger: 'item',//数据触发类型  item:数据图饼图触发      axis:坐标轴触发
                        formatter: '{b}'//地图 {b}(区域名称)
                    },
                    series: [{
                        name: '中国',
                        type: 'map',
                        mapType: 'china',
                        //selectedMode: 'multiple',
                        itemStyle: {//有2个状态  normal 是图形在默认状态下的样式;emphasis 是图形在高亮状态下的样式
                            normal: {
                                label: {
                                    show: true,
                                    textStyle: {//标签的文本样式
                                        fontSize: 18,
                                        color: '#000'
                                    }
                                },
                                borderColor: '#cdcdca',//边框颜色
                                borderWidth: 0.5,//边框线宽
                                areaStyle: {//区域样式
                                    color: '#000'
                                }
                            },
                            emphasis: {
                                borderWidth: 0.5,
                                borderColor: '#cdcdca',
                                areaColor: '#fff',
                                label: {
                                    shadowColor: '#000', //默认透明
                                    shadowBlur: 10,
                                    show: true,
                                    textStyle: {
                                        fontSize: 12,
                                        color: '#3db77f'
                                    }
                                }
                            }
                        },
            
                        label: {
                            normal: {
                                show: false,
                            },
                            emphasis: {
                                show: false,
                            }
                        },
                        data: [{
                            name: '黑龙江',
                            itemStyle: {
                                normal: {
                                    areaColor: "#f2e9e4",
                                    // borderWidth: 2
                                },
                                emphasis: {//高亮状态下的多边形和标签样式
                                    borderWidth: 1,
                                    borderColor: '#3db77f',
                                    areaColor: '#fff',
                                    label: {
                                        shadowColor: '#000', //默认透明
                                        shadowBlur: 10,
                                        show: true,
                                        textStyle: {
                                            fontSize: 12,
                                            color: '#3db77f'
                                        }
                                    }
                                }
                            },
                            label: {
                                normal: {
                                    show: true,
                                    textStyle: {
                                        fontSize: 12,
                                        color: '#0d6fb8'
                                    }
                                },
                                emphasis: {
                                    show: true,
                                    color: '#3db77f'
                                }
                            }
                        }, {
                            name: '青海',
                            itemStyle: {
                                normal: {
                                    areaColor: "#f2e9e4",
                                    // borderWidth: 2
                                },
                                emphasis: {
//                                   borderWidth: 1,
//                                   borderColor: '#3db77f',
                                    areaColor: '#f2e9e4',
                                    label: {
                                        shadowColor: '#000', //默认透明
                                        shadowBlur: 10,
                                        show: false,
                                        textStyle: {
                                            fontSize: 12,
                                            color: '#3db77f'
                                        }
                                    }
                                }
                            }
                        }, {
                            name: '陕西',
                            itemStyle: {
                                normal: {
                                    areaColor: "#f2e9e4",
                                    // borderWidth: 2
                                },
                                emphasis: {
                                    borderWidth: 1,
                                    borderColor: '#3db77f',
                                    areaColor: '#fff',
                                    label: {
                                        shadowColor: '#000', //默认透明
                                        shadowBlur: 10,
                                        show: true,
                                        textStyle: {
                                            fontSize: 12,
                                            color: '#3db77f'
                                        }
                                    }
                                }
                            },
                            label: {
                                normal: {
                                    show: true,
                                    textStyle: {
                                        fontSize: 12,
                                        color: '#0d6fb8'
                                    }
                                },
                                emphasis: {
                                    show: true,
                                    color: '#3db77f'
                                }
                            }
                        }, {
                            name: '广东',
                            itemStyle: {
                                normal: {
                                    areaColor: "#f2e9e4",
                                    // borderWidth: 2
                                },
                                emphasis: {
                                    // borderWidth: 1,
                                    // borderColor: '#3db77f',
                                    areaColor: '#f2e9e4',
                                    label: {
                                        shadowColor: '#000', //默认透明
                                        shadowBlur: 10,
                                        show: false,
                                        textStyle: {
                                            fontSize: 12,
                                            color: '#3db77f'
                                        }
                                    }
                                }
                            }
                        }, {
                            name: '广西',
                            itemStyle: {
                                normal: {
                                    areaColor: "#daeadd",
                                    // borderWidth: 2
                                },
                                emphasis: {
                                    // borderWidth: 1,
                                    // borderColor: '#3db77f',
                                    areaColor: '#daeadd',
                                    label: {
                                        shadowColor: '#000', //默认透明
                                        shadowBlur: 10,
                                        show: false,
                                        textStyle: {
                                            fontSize: 12,
                                            color: '#3db77f'
                                        }
                                    }
                                }
                            }
                        }, {
                            name: '重庆',
                            itemStyle: {
                                normal: {
                                    areaColor: "#daeadd",
                                    // borderWidth: 2
                                },
                                emphasis: {
                                    // borderWidth: 1,
                                    // borderColor: '#3db77f',
                                    areaColor: '#daeadd',
                                    label: {
                                        shadowColor: '#000', //默认透明
                                        shadowBlur: 10,
                                        show: false,
                                        textStyle: {
                                            fontSize: 12,
                                            color: '#3db77f'
                                        }
                                    }
                                }
                            }
                        }, {
                            name: '宁夏',
                            itemStyle: {
                                normal: {
                                    areaColor: "#f2e9e4",
                                    // borderWidth: 2
                                },
                                emphasis: {
                                    // borderWidth: 1,
                                    // borderColor: '#3db77f',
                                    areaColor: '#f2e9e4',
                                    label: {
                                        shadowColor: '#000', //默认透明
                                        shadowBlur: 10,
                                        show: false,
                                        textStyle: {
                                            fontSize: 12,
                                            color: '#3db77f'
                                        }
                                    }
                                }
                            }
                        }, {
                            name: '云南',
                            itemStyle: {
                                normal: {
                                    areaColor: "#f2e9e4",
                                    // borderWidth: 2
                                },
                                emphasis: {
                                    // borderWidth: 1,
                                    // borderColor: '#3db77f',
                                    areaColor: '#f2e9e4',
                                    label: {
                                        shadowColor: '#000', //默认透明
                                        shadowBlur: 10,
                                        show: false,
                                        textStyle: {
                                            fontSize: 12,
                                            color: '#3db77f'
                                        }
                                    }
                                }
                            }
                        }, {
                            name: '河南',
                            itemStyle: {
                                normal: {
                                    areaColor: "#f5e6e8",
                                    // borderWidth: 2
                                },
                                emphasis: {
                                    borderWidth: 1,
                                    borderColor: '#3db77f',
                                    areaColor: '#fff',
                                    label: {
                                        shadowColor: '#000', //默认透明
                                        shadowBlur: 10,
                                        show: true,
                                        textStyle: {
                                            fontSize: 12,
                                            color: '#3db77f'
                                        }
                                    }
                                }
                            },
                            label: {
                                normal: {
                                    show: true,
                                    textStyle: {
                                        fontSize: 12,
                                        color: '#0d6fb8'
                                    }
                                },
                                emphasis: {
                                    show: true,
                                    color: '#3db77f'
                                }
                            }
                        }, {
                            name: '江西',
                            itemStyle: {
                                normal: {
                                    areaColor: "#f4e8e8",
                                    //borderWidth: 2
                                },
                                emphasis: {
                                    borderWidth: 1,
                                    borderColor: '#3db77f',
                                    areaColor: '#fff',
                                    label: {
                                        shadowColor: '#000', //默认透明
                                        shadowBlur: 10,
                                        show: true,
                                        textStyle: {
                                            fontSize: 12,
                                            color: '#3db77f'
                                        }
                                    }
                                }
                            },
                            label: {
                                normal: {
                                    show: true,
                                    textStyle: {
                                        fontSize: 12,
                                        color: '#0d6fb8'
                                    }
                                },
                                emphasis: {
                                    show: true,
                                    color: '#3db77f'
                                }
                            }
                        }, {
                            name: '吉林',
                            itemStyle: {
                                normal: {
                                    areaColor: "#f6f7e9",
                                    // borderWidth: 2
                                },
                                emphasis: {
                                    // borderWidth: 1,
                                    // borderColor: '#3db77f',
                                    areaColor: '#f6f7e9',
                                    label: {
                                        shadowColor: '#000', //默认透明
                                        shadowBlur: 10,
                                        show: false,
                                        textStyle: {
                                            fontSize: 12,
                                            color: '#3db77f'
                                        }
                                    }
                                }
                            }
                        }, {
                            name: '海南',
                            itemStyle: {
                                normal: {
                                    areaColor: "#f2e8e4",
                                    // borderWidth: 2
                                },
                                emphasis: {
                                    // borderWidth: 1,
                                    // borderColor: '#3db77f',
                                    areaColor: '#f2e8e4',
                                    label: {
                                        shadowColor: '#000', //默认透明
                                        shadowBlur: 10,
                                        show: false,
                                        textStyle: {
                                            fontSize: 12,
                                            color: '#3db77f'
                                        }
                                    }
                                }
                            }
                        }, {
                            name: '台湾',
                            itemStyle: {
                                normal: {
                                    areaColor: "#f2e8e4",
                                    // borderWidth: 2
                                },
                                emphasis: {
                                    // borderWidth: 1,
                                    // borderColor: '#3db77f',
                                    areaColor: '#f2e8e4',
                                    label: {
                                        shadowColor: '#000', //默认透明
                                        shadowBlur: 10,
                                        show: false,
                                        textStyle: {
                                            fontSize: 12,
                                            color: '#3db77f'
                                        }
                                    }
                                }
                            }
                        }, {
                            name: '河北',
                            itemStyle: {
                                normal: {
                                    areaColor: "#f6f7e9",
                                },
                                emphasis: {
                                    areaColor: '#fff',
                                    borderWidth: 1,
                                    borderColor: '#3db77f',
                                    label: {
                                        show: false,
                                        textStyle: {
                                            fontSize: 12,
                                            color: '#3db77f'
                                        }
                                    }
                                }
                            },
                            label: {
                                normal: {
                                    show: true,
                                    textStyle: {
                                        fontSize: 12,
                                        color: '#0d6fb8'
                                    }
                                },
                                emphasis: {
                                    show: true,
                                    color: '#3db77f'
                                }
                            }
                        }, {
                            name: '甘肃',
                            itemStyle: {
                                normal: {
                                    areaColor: "#f6f7e9",
                                    // borderWidth: 2
                                },
                                emphasis: {
                                    // borderWidth: 1,
                                    // borderColor: '#3db77f',
                                    areaColor: '#f6f7e9',
                                    label: {
                                        shadowColor: '#000', //默认透明
                                        shadowBlur: 10,
                                        show: false,
                                        textStyle: {
                                            fontSize: 12,
                                            color: '#3db77f'
                                        }
                                    }
                                }
                            }
                        }, {
                            name: '湖北',
                            itemStyle: {
                                normal: {
                                    areaColor: "#f6f7e9",
                                    // borderWidth: 2
                                },
                                emphasis: {
                                     borderWidth: 1,
                                     borderColor: '#3db77f',
                                    areaColor: '#fff',
                                    label: {
                                        shadowColor: '#000', //默认透明
                                        shadowBlur: 10,
                                        show: false,
                                        textStyle: {
                                            fontSize: 12,
                                            color: '#3db77f'
                                        }
                                    }
                                }
                            },
                            label: {
                                normal: {
                                    show: true,
                                    textStyle: {
                                        fontSize: 12,
                                        color: '#0d6fb8'
                                    }
                                },
                                emphasis: {
                                    show: true,
                                    color: '#3db77f'
                                }
                            }
                        }, {
                            name: '贵州',
                            itemStyle: {
                                normal: {
                                    areaColor: "#f6f7e9",
                                    // borderWidth: 2
                                },
                                emphasis: {
                                    // borderWidth: 1,
                                    // borderColor: '#3db77f',
                                    areaColor: '#f6f7e9',
                                    label: {
                                        shadowColor: '#000', //默认透明
                                        shadowBlur: 10,
                                        show: false,
                                        textStyle: {
                                            fontSize: 12,
                                            color: '#3db77f'
                                        }
                                    }
                                }
                            }
                        }, {
                            name: '西藏',
                            itemStyle: {
                                normal: {
                                    areaColor: "#f6f7e9",
                                    // borderWidth: 2
                                },
                                emphasis: {
                                    // borderWidth: 1,
                                    // borderColor: '#3db77f',
                                    areaColor: '#f6f7e9',
                                    label: {
                                        shadowColor: '#000', //默认透明
                                        shadowBlur: 10,
                                        show: false,
                                        textStyle: {
                                            fontSize: 12,
                                            color: '#3db77f'
                                        }
                                    }
                                }
                            }
                        }, {
                            name: '内蒙古',
                            itemStyle: {
                                normal: {
                                    areaColor: "#dce6ea",
                                    // borderWidth: 2
                                },
                                emphasis: {
                                    // borderWidth: 1,
                                    // borderColor: '#3db77f',
                                    areaColor: '#dce6ea',
                                    label: {
                                        shadowColor: '#000', //默认透明
                                        shadowBlur: 10,
                                        show: false,
                                        textStyle: {
                                            fontSize: 12,
                                            color: '#3db77f'
                                        }
                                    }
                                }
                            }
                        }, {
                            name: '新疆',
                            itemStyle: {
                                normal: {
                                    areaColor: "#dce6ea",
                                    // borderWidth: 2
                                },
                                emphasis: {
                                    // borderWidth: 1,
                                    // borderColor: '#3db77f',
                                    areaColor: '#dce6ea',
                                    label: {
                                        shadowColor: '#000', //默认透明
                                        shadowBlur: 10,
                                        show: false,
                                        textStyle: {
                                            fontSize: 12,
                                            color: '#3db77f'
                                        }
                                    }
                                }
                            }
                        }, {
                            name: '北京',
                            itemStyle: {
                                normal: {
                                    areaColor: "#dce6ea",
                                    // borderWidth: 2
                                },
                                emphasis: {
                                    // borderWidth: 1,
                                    // borderColor: '#3db77f',
                                    areaColor: '#dce6ea',
                                    label: {
                                        shadowColor: '#000', //默认透明
                                        shadowBlur: 10,
                                        show: false,
                                        textStyle: {
                                            fontSize: 12,
                                            color: '#3db77f'
                                        }
                                    }
                                }
                            }
                        }, {
                            name: '天津',
                            itemStyle: {
                                normal: {
                                    areaColor: "#dce6ea",
                                    // borderWidth: 2
                                },
                                emphasis: {
                                    // borderWidth: 1,
                                    // borderColor: '#3db77f',
                                    areaColor: '#dce6ea',
                                    label: {
                                        shadowColor: '#000', //默认透明
                                        shadowBlur: 10,
                                        show: false,
                                        textStyle: {
                                            fontSize: 12,
                                            color: '#3db77f'
                                        }
                                    }
                                }
                            }
                        }, {
                            name: '上海',
                            itemStyle: {
                                normal: {
                                    areaColor: "#dce6ea",
                                    // borderWidth: 2
                                },
                                emphasis: {
                                    // borderWidth: 1,
                                    // borderColor: '#3db77f',
                                    areaColor: '#dce6ea',
                                    label: {
                                        shadowColor: '#000', //默认透明
                                        shadowBlur: 10,
                                        show: false,
                                        textStyle: {
                                            fontSize: 12,
                                            color: '#3db77f'
                                        }
                                    }
                                }
                            }
                        }, {
                            name: '湖南',
                            itemStyle: {
                                normal: {
                                    areaColor: "#dce6ea",
                                    // borderWidth: 2
                                },
                                emphasis: {
                                     borderWidth: 1,
                                     borderColor: '#3db77f',
                                    areaColor: '#fff',
                                    label: {
                                        shadowColor: '#000', //默认透明
                                        shadowBlur: 10,
                                        show: false,
                                        textStyle: {
                                            fontSize: 12,
                                            color: '#3db77f'
                                        }
                                    }
                                }
                            },
                            label: {
                                normal: {
                                    show: true,
                                    textStyle: {
                                        fontSize: 12,
                                        color: '#0d6fb8'
                                    }
                                },
                                emphasis: {
                                    show: true,
                                    color: '#3db77f'
                                }
                            }
                        }, {
                            name: '福建',
                            itemStyle: {
                                normal: {
                                    areaColor: "#dce6ea",
                                    // borderWidth: 2
                                },
                                emphasis: {
                                    borderWidth: 1,
                                    borderColor: '#3db77f',
                                    areaColor: '#fff',
                                    label: {
                                        shadowColor: '#000', //默认透明
                                        shadowBlur: 10,
                                        show: true,
                                        textStyle: {
                                            fontSize: 12,
                                            color: '#3db77f'
                                        }
                                    }
                                }
                            },
                            label: {
                                normal: {
                                    show: true,
                                    textStyle: {
                                        fontSize: 12,
                                        color: '#0d6fb8'
                                    }
                                },
                                emphasis: {
                                    show: true,
                                    color: '#3db77f'
                                }
                            }
                        }, {
                            name: '江苏',
                            itemStyle: {
                                normal: {
                                    areaColor: "#e4ebe8",
                                    // borderWidth: 2
                                },
                                emphasis: {
                                    borderWidth: 1,
                                    borderColor: '#3db77f',
                                    areaColor: '#fff',
                                    label: {
                                        shadowColor: '#000', //默认透明
                                        shadowBlur: 10,
                                        show: false,
                                        textStyle: {
                                            fontSize: 12,
                                            color: '#3db77f'
                                        }
                                    }
                                }
                            },
                            label: {
                                normal: {
                                    show: true,
                                    textStyle: {
                                        fontSize: 12,
                                        color: '#0d6fb8'
                                    }
                                },
                                emphasis: {
                                    show: true,
                                    color: '#3db77f'
                                }
                            }
                        }, {
                            name: '山东',
                            itemStyle: {
                                normal: {
                                    areaColor: "#e4ebe8",
                                },
                                emphasis: {
                                    borderWidth: 1,
                                    borderColor: '#3db77f',
                                    areaColor: '#fff',
                                    label: {
                                        shadowColor: '#000', //默认透明
                                        shadowBlur: 10,
                                        show: true,
                                        textStyle: {
                                            fontSize: 12,
                                            color: '#3db77f'
                                        }
                                    }
                                }
                            },
                            label: {
                                normal: {
                                    show: true,
                                    textStyle: {
                                        fontSize: 12,
                                        color: '#0d6fb8'
                                    }
                                },
                                emphasis: {
                                    show: true,
                                    color: '#3db77f'
                                }
                            }
                        }, {
                            name: '辽宁',
                            itemStyle: {
                                normal: {
                                    areaColor: "#e4ebe8",
                                },
                                emphasis: {
                                    borderWidth: 1,
                                    borderColor: '#3db77f',
                                    areaColor: '#fff',
                                    label: {
                                        shadowColor: '#000', //默认透明
                                        shadowBlur: 10,
                                        show: true,
                                        textStyle: {
                                            fontSize: 12,
                                            color: '#3db77f'
                                        }
                                    }
                                }
                            },
                            label: {
                                normal: {
                                    show: true,
                                    textStyle: {
                                        fontSize: 12,
                                        color: '#0d6fb8'
                                    }
                                },
                                emphasis: {
                                    show: true,
                                    color: '#3db77f'
                                }
                            }
                        }, {
                            name: '山西',
                            itemStyle: {
                                normal: {
                                    areaColor: "#e4ebe8",
                                },
                                emphasis: {
                                    borderWidth: 1,
                                    borderColor: '#3db77f',
                                    areaColor: '#fff',
                                    label: {
                                        shadowColor: '#000', //默认透明
                                        shadowBlur: 10,
                                        show: true,
                                        textStyle: {
                                            fontSize: 12,
                                            color: '#3db77f'
                                        }
                                    }
                                }
                            },
                            label: {
                                normal: {
                                    show: true,
                                    textStyle: {
                                        fontSize: 12,
                                        color: '#0d6fb8'
                                    }
                                },
                                emphasis: {
                                    show: true,
                                    color: '#3db77f'
                                }
                            }
                        }, {
                            name: '浙江',
                            itemStyle: {
                                normal: {
                                    areaColor: "#e4ebe8",
                                },
                                emphasis: {
                                    borderWidth: 1,
                                    borderColor: '#3db77f',
                                    areaColor: '#fff',
                                    label: {
                                        shadowColor: '#000', //默认透明
                                        shadowBlur: 10,
                                        show: true,
                                        textStyle: {
                                            fontSize: 12,
                                            color: '#3db77f'
                                        }
                                    }
                                }
                            },
                            label: {
                                normal: {
                                    show: true,
                                    textStyle: {
                                        fontSize: 12,
                                        color: '#0d6fb8'
                                    }
                                },
                                emphasis: {
                                    show: true,
                                    color: '#3db77f'
                                }
                            }
                        }, {
                            name: '四川',
                            itemStyle: {
                                normal: {
                                    areaColor: "#e4ebe8",
                                },
                                emphasis: {
                                    // borderWidth: 1,
                                    // borderColor: '#e4ebe8',
                                    areaColor: '#e4ebe8',
                                    label: {
                                        shadowColor: '#000', //默认透明
                                        shadowBlur: 10,
                                        show: false,
                                        textStyle: {
                                            fontSize: 12,
                                            color: '#3db77f'
                                        }
                                    }
                                }
                            },
                        }, {
                            name: '南海诸岛',
                            itemStyle: {
                                normal: {
                                    areaColor: "#e4ebe8",
                                },
                                emphasis: {
                                    // borderWidth: 1,
                                    // borderColor: '#e4ebe8',
                                    areaColor: '#e4ebe8',
                                    label: {
                                        shadowColor: '#000', //默认透明
                                        shadowBlur: 10,
                                        show: false,
                                        textStyle: {
                                            fontSize: 12,
                                            color: '#3db77f'
                                        }
                                    }
                                }
                            },
                        }, {
                            name: '安徽',
                            itemStyle: {
                                normal: {
                                    areaColor: "#f6eae4",
                                    // borderWidth: 2
                                },
                                emphasis: {
                                    borderWidth: 1,
                                    borderColor: '#3db77f',
                                    areaColor: '#fff',
                                    label: {
                                        shadowColor: '#000', //默认透明
                                        shadowBlur: 10,
                                        show: true,
                                        textStyle: {
                                            fontSize: 12,
                                            color: '#3db77f'
                                        }
                                    }
                                }
                            },
                            label: {
                                normal: {
                                    show: true,
                                    textStyle: {
                                        fontSize: 12,
                                        color: '#0d6fb8'
                                    }
                                },
                                emphasis: {
                                    show: true,
                                }
                            }
                        }],
                        markPoint: {
                            show: true,
                            symbol: 'circle',
                            symbolSize: 10,
                        }
                    }]
                }
             );   
             myChart.on('click', function(params) {
                    var city = params.name;
                    console.log(city)
//                  for(var i in map_citys){
//                      if(map_citys[i]==city+'省'){
//                          window.open(ROOT +'/hospital/?province='+ i);
//                      }
//                  }
                });
        </script>
    </body>
</html>

相关文章

  • 用 echarts 实现中国地图的展示

    基于 echarts 用 react 实现中国地图的展示,主要是用地理坐标系组件和GEOJSON ECharts ...

  • Echarts实现中国地图、省份地图及对应数据展示

    Echarts实现中国地图、省份地图及对应数据展示 一、概述 首先ECharts 是一个使用 JavaScript...

  • echarts 实现中国地图

    实现效果如下 下载的china.js,可能会导致省份名字不居中或者重叠,必须修改”properties”下的”cp...

  • echarts实现中国地图

    让我们先来看下效果图: 一:先建立组件:visualizationChart.vue 二:调用组件 好啦,就到这里...

  • echarts 实现中国地图的操作

    根据项目的要求在闪点地图上展示,在上传文件时闪点的状态让点变大变颜色,下载文件的城市节点变一个颜色,静态时节点一个...

  • !!!echarts插件中没有map文件夹

    在安装echarts,导入插件后发现没有map文件夹。本意是想导入中国地图 echarts现在已经不提供地图map...

  • echarts绘制中国地图

    最近项目中需要出现中国地图 ,因为总是使用echarts写柱状图和饼图,头一次写地图,所以就给记录下来 先把整个代...

  • echarts中国地图绘制

    声明:此代码是在echarts社区找到的 ,并非原创 为方便以后遇到同样的问题,记录一下 成品图 代码 代码需要引...

  • vue echarts 中国地图

    效果图 vue模板语法块 echarts 中国地图 china 初始化格式数据。要数据的私信我,字节数太多不能...

  • nuxt + echarts -> 中国地图

    下载echarts 在plugins目录下新建echarts.js文件并引入echarts依赖包 plugins/...

网友评论

      本文标题:echarts 实现中国地图

      本文链接:https://www.haomeiwen.com/subject/votimftx.html