-
Notifications
You must be signed in to change notification settings - Fork 19.8k
Description
Version
5.1.2
Steps to reproduce
-
下载 global wind visualization: https://echarts.apache.org/86440d6b-dc71-4da5-ab4f-38101e6125a1
-
在中添加必要js文件,
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" type="text/javascript"></script>
<script src="./echarts-gl.min.js" type="text/javascript"></script>
以及变量
var ROOT_PATH = 'https://cdn.jsdelivr.net/gh/apache/echarts-website@asf-site/examples';
What is expected?
如example所示
What is actually happening?
报错:
echarts-gl.min.js:1 Uncaught TypeError: Cannot read property 'dimensions' of undefined
at n._updateData (echarts-gl.min.js:1)
at n.render (echarts-gl.min.js:1)
at t.progress (echarts.min.js:45)
at t._doProgress (echarts.min.js:45)
at t.perform (echarts.min.js:45)
at echarts.min.js:45
at e. (echarts.min.js:45)
at Array.forEach ()
at P (echarts.min.js:35)
at e.eachSeries (echarts.min.js:45)
尝试添加china.js作为地图文件,仍然失败