uniapp qiun charts H5使用echarts的eopts配置不生效

 原因是:使用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: [
  
        ]
      }
    }
  },

猜你喜欢

转载自blog.csdn.net/LlanyW/article/details/132606733