文档:
- echarts-for-weixin
- 在微信小程序中使用 ECharts
- https://echarts.apache.org/zh/option.html
官网Demo
1、下载源码,将ec-canvas
文件夹拷贝到小程序目录,第三方代码,我都放在libs
文件夹 https://github.com/ecomfe/echarts-for-weixin
libs/
ec-canvas
2、引入组件 page.json
{
"usingComponents": {
"ec-canvas": "../../libs/ec-canvas/ec-canvas"
}
}
3、使用组件 page.wxml
关注
打赏