原因是:使用web的要设置 echartsH5
:echartsH5="true"
<template>
<view class="charts-box">
<view class="chart-title"> 趋势</view>
<qiun-data-charts
type="column"
:eopts="eopts"
:chartData="chartData"
:background="backc"
:echartsH5="true" :echartsApp="true"
/>
</view>
</template>
...
data() {
return {
chartData: {},
backc: 'rgb(254,254,254)',
eopts: {
dataLabel:false,
legend: {
show:false
},
xAxis: {
type: 'category',
disableGrid: true,
axisLine: {show: false}
},
yAxis: {
show:false,
axisLine: {show: false}
},
series: [
]
}
}
},