index.vue页面
参考官方文档配置
http://doc.ucharts.cn/1074673
遇到的问题:u-charts.js源码里要将最后一句改成:
// module.exports = Charts;这句改成下面的
export default Charts;
<template>
<view>
<view class="qiun-charts">
<!-- 区域图 -->
<canvas canvas-id="canvasArea" id="canvasArea" class="charts" @touchstart="touchArea"></canvas>
</view>
<div class="qiun-charts">
<!-- 柱状图 -->
111
<canvas canvas-id="canvasColumn" id="canvasColumn" class="charts" @touchstart="touchColumn"></canvas>
</div>
</view>
</template>
<script>
import uCharts from "../../components/u-charts/u-charts.js";
var canvaArea =null;
var canvaColumn = null;
expo