1.wxml
代码如下(示例):
<ec-canvas id="mychart-dom-bar" canvas-id="mychart-bar" ec="{
{ ec }}" width='345' height="515"></ec-canvas>
2.js
import * as echarts from "../../components/ec-canvas/echarts.min"; // 要修改成你的存放路径
const app = getApp();
//echarts生成图片
Page({
data: {
ec: