const App = getApp();
import * as echarts from '../../ec-canvas/echarts'; //引入echarts.js
var barec = null
Page({
onShareAppMessage: function (res) {
return {
title: 'ECharts 可以在微信小程序中使用啦!',
path: '/pages/index/index',
success: function () {
},
fail: function () {
}
}
},
data: {
ec: {
onInit: function (canvas, width, height) {
barec = echarts.init(canvas, null, {
width: width,
height: height
});
canvas.setChart(barec);
return barec;
}
},
},
onReady() {
},
onLoad:
微信小程序--echarts实现双y轴
最新推荐文章于 2023-06-22 00:00:00 发布