echarts中报错

简介: echarts中报错

echarts.js:7742 Uncaught DOMException: Failed to execute 'drawImage' on'CanvasRenderingContext2D': The image argument is a canvas element with a width orheight of 0.7d0c502b9f9aef26626467296436a652.png


大佬们 之前写的项目中遇到的错误 我在js中获取用jquery获取dom节点 然后把从echarts中获取到的数据放进html中获取dom节点没问题


结果发现是我获取html中的div元素没有加上宽和高的样式

7cdb4619fa31d2aa89b4f7bb30624cf2.png

04622d0cd9f764a1d40f78ff23e82a99.png


我给它加上宽和高的样式就可以正常显示了


2956e3d1e02ea3c854a568a188ccf5e0.png


目录
相关文章
|
容器
Echarts报错 Cant read property getWidth of null的解决方案
Echarts报错 Cant read property getWidth of null的解决方案
199 0
|
8月前
【echarts报错】line series not exists,should be same with series name or data name
【echarts报错】line series not exists,should be same with series name or data name
307 0
|
5月前
|
JavaScript
Echarts——VUE中非根节点时不显示图表也无报错
Echarts——VUE中非根节点时不显示图表也无报错
43 1
|
6月前
echarts 报错 —— Component series.map not exists. Load it first
echarts 报错 —— Component series.map not exists. Load it first
157 0
|
8月前
|
JavaScript
升级echarts v5.0以后vue项目报错“export ‘default‘ (imported as ‘echarts‘) was not found in ‘echarts‘
升级echarts v5.0以后vue项目报错“export ‘default‘ (imported as ‘echarts‘) was not found in ‘echarts‘
|
8月前
【echarts报错】: ‘normal‘ hierarchy in itemStyle has been removed since 4.0.
【echarts报错】: ‘normal‘ hierarchy in itemStyle has been removed since 4.0.
418 0
|
8月前
|
JavaScript
Echarts渲染不报错但是没有内容
Echarts渲染不报错但是没有内容
400 0
Echarts渲染不报错但是没有内容
|
JavaScript
Echarts报错-Uncaught ReferenceError: echarts is not defined
Echarts报错-Uncaught ReferenceError: echarts is not defined
471 0
|
JavaScript
Vue整合Echarts报错:“TypeError: Cannot read properties of undefined (reading ‘init‘)“
Vue整合Echarts报错:“TypeError: Cannot read properties of undefined (reading ‘init‘)“
2118 0
Vue整合Echarts报错:“TypeError: Cannot read properties of undefined (reading ‘init‘)“
|
JSON 定位技术 开发工具
解决echarts地图geoJson报错问题(“echarts.min.js:45 Uncaught Error: Invalid geoJson format Cannot read prope”)
解决报错: 1.Invalid geoJson format Cannot read property ‘length’ of undefined 2 echarts.min.js:45 Uncaught Error: Invalid geoJson format Cannot read prope
1374 0
解决echarts地图geoJson报错问题(“echarts.min.js:45 Uncaught Error: Invalid geoJson format Cannot read prope”)