秋云 ucharts echarts 实现环形图的问题

我希望是
image.png
然后我调的时候不知道哪里不对,调不出来,中间的文字出不来和数据点上方的数据文案不隐藏
image.png
代码是这样的,如果有做过的可以帮忙看下吗,谢谢!

<qiun-data-charts type="ring" :eopts="opts" :chartData="chartData" :errorShow="false"
                  :errorReload="false" :tooltipShow="false" :tapLegend="false" :ontap="false" :onmouse="false"
                  background="none" :echartsH5="true" :echartsApp="true" />


    opts: {
          color: ['#00C86B', '#0E95F3'],
          dataLabel: false,
          legend: {
            show: false,
          },
          subtitle: {
            "name": "10",
            "fontSize": 25,
            "color": "#7cb5ec",
            "offsetX": 0,
            "offsetY": 0
          },
        }
阅读 8.7k
2 个回答

在pie series里加上:

label:{show:false,position:"center"},
labelLine:{show:false},
emphasis:{label:{show:true}}

我知道怎么弄了,直接这样写就好了,之前是因为用echart ,没搞清楚echart和uchart ,写混了

<qiun-data-charts type="ring" :opts="opts" :chartData="chartData" />
opts: {
          color: ['#00C86B', '#0E95F3'],
          dataLabel: false,
          legend: {
            show: false,
          },
          subtitle: {
            "name": "10",
            "fontSize": 25,
            "color": "#7cb5ec",
            "offsetX": 0,
            "offsetY": 0
          },
          "extra": {
            "ring": {
              "ringWidth": 10
            }
          }
        },
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题