赞
踩
https://github.com/ecomfe/echarts-for-weixin
项目中需要使用图表库
将下载下来的demo里面的ec-canvas组件复制到自己的项目里
我的小程序项目使用wepy开发的,第一次使用Echarts图表库
明明按照官方文档里操作,运行后报错找不到路径???
component is not found in path
然后我就反复整了几小时还行不行。。。。气的彻底疯了!!!
因为引入的:
usingComponents: { "ec-canvas": "./../../components/ec-canvas/echarts" }
echarts不是json配置文件!!!
ec-canvas.json里面开启了组件!!
改为使用ec-canvas
usingComponents: { "ec-canvas": "./../../components/ec-canvas/ec-canvas" }
看图说话
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。