Vue 中使用 Echarts 简单入门——小白必看

在 Vue 中用 Echarts 的 3D图形报了这个错误,Error: Component series.bar3D not exists. Load it first

问题解决办法如下:

1、npm install echarts-gl

在这里插入图片描述

2、在 main.js 中引入

import echartsGL from 'echarts-gl'
Vue.prototype.$echartsGL = echartsGL

即可成功运行起来 3D 图
在这里插入图片描述

Logo

前往低代码交流专区

更多推荐