Echart报错: Map china not exists. You can download map file on http://echarts.baidu.com/download-map.html

下载资源文件

去上面提示网址直接下载资源文件即可,注意需要的是 JS ,还是 JSON.

使用

JS使用

<script src='china.js'></script>
var chart = echarts.init(document.getElementById('map'));chart.setOption({series: [{type: 'map',map: 'china'}]});

注意导入资源文件<script src='china.js'></script>

JSON使用

 $.getJSON('china.json', function (data) {echarts.registerMap('china', data);var chart = echarts.init(document.getElementById('map'));chart.setOption({series: [{type: 'map',map: 'china'}]});});

Echart报错: Map china not exists. You can download map file on相关推荐

  1. Echart报错: Map china not exists. You can download map file on.....的解决办法

    Echart报错: Map china not exists. You can download map file on http://echarts.baidu.com/download-map.h ...

  2. vue 引入echarts画中国地图 Map china not exists

    现象:在vue里用echarts画地图时报错:Map china not exists. 只出现了南海诸岛部分 原因:没引入地图数据 解决: import 'echarts/map/js/china. ...

  3. SAP QM执行事务代码QE23为检验批录入结果,报错-No selected set exists for the inspection point 200 or plant NMDC-

    SAP QM执行事务代码QE23为检验批录入结果,报错-No selected set exists for the inspection point 200 or plant NMDC- 检验批#8 ...

  4. git 报错 destination path already exists and is not empty director

    git 报错 destination path already exists and is not empty director 既然报错 必然存在报错的机制 报错机制 桌面上创建任意文件夹 拉取任意 ...

  5. pyecharts js 地图无法显示 Map china not exists the geoJson of the map must be provided

    pyecharts js 地图无法显示 Map china not exists the geoJson of the map must be provided 下载好china.js 后,在html ...

  6. 使用Echart报错Cannot read property ‘getAttribute‘ of undefined

    项目中使用Echart报错,百度结果说生命周期性错误,解决办法是 mounted() {this.$nextTick(() => {this.drawLine();});} 此方法可以解决百分之 ...

  7. Linux/ubuntu 安装 redis 4.0报错解决:redis-server.service: Can't open PID file /var/run/redis/redis-server.

    此文首发于我的个人博客:Linux/ubuntu 安装 redis 4.0报错解决:redis-server.service: Can't open PID file /var/run/redis/r ...

  8. 在Jetson Xavier NX上安装torchvision编译报错:fatal error: libavcodec/avcodec.h: No such file or directory

    文章目录: 1 问题原因说明 2 解决方法 1 问题原因说明 1.尝试安装torchvision 在Jetson NX设备上安装torch的版本是1.6.0版本,对应安装torchvision版本应该 ...

  9. salt '*' state.highstate 报错找不到文件,环境如下No Top file or master_tops data matches found....

    salt '*' state.highstate 报错找不到文件,环境如下No Top file or master_tops data matches found. file_roots:    b ...

  10. 【错误记录】PyCharm 运行 Python 程序报错 ( PEP 8: W292 no newline at end of file )

    文章目录 一.报错信息 二.解决方案 一.报错信息 PyCharm 运行 Python 程序报错 : PEP 8: W292 no newline at end of file 二.解决方案 在每个 ...

最新文章

  1. JavaScript调用浏览器里的websocket,如何多帧上行数据
  2. Android中处理崩溃异常 (转)
  3. java批量修改txt文件_Java小工具 根据文本批量修改文件名
  4. hive(4)——元数据概述
  5. php实现上传图片保存到数据库的方法
  6. dashboard windows 前端开发环境搭建
  7. ul阻燃标准有几个等级_阻燃性弱电电缆种类众多 怎么样选择才合适?
  8. 平衡二叉树删除_AVL 平衡树
  9. HDU 2825 位压缩
  10. Spring源码阅读五 IOC容器初始化之 bean定义载入
  11. run (简单DP)
  12. 初学者,学哪一种3d模型设计软件比较好?
  13. Axure实战002:APP原型设计思路
  14. 万丈高楼平地起 功夫不负有心人
  15. 2020-09-15,小米笔试,java
  16. at指令 meid_常用AT指令集 (转)
  17. 分享简单的记账方法,轻松搜索账目查看
  18. python 将函数封装成pyd或者so文件,调用该文件
  19. mysql表分区备份_ZRM 2.1:备份MySQL分区表
  20. Fluent UDF 实现用Newmark-β方法计算圆柱绕流流固耦合时的位移振动响应

热门文章

  1. 斐讯k1潘多拉专版固件_斐讯路由器刷潘多拉固件+宽带并发多拨号视频教程+工具下载(K1K2)...
  2. javascript 学习指南--语法
  3. 电脑虎牙,虎牙助手主播版电脑版
  4. 通用数据库连接工具--DbVisualizer的使用
  5. Android 图片高斯模糊处理
  6. 程序员面试指南python_程序员代码面试指南:IT名企算法与数据结构题目最优解 PDF...
  7. 传智播客java20套源码_Hanselminutes播客20
  8. LINUX下安装svn客户端
  9. Visual Basic(VB6.0)精简版
  10. acr122 java,ACR122U使用教程