页面树结构
转至元数据结尾
转至元数据起始

(此文档仅供参考)

问题

Echarts环形图如何将某一数据标签显示在环形中间并修改标签样式?

解决方案

在环形图加上以下扩展属性。

{
    "series": [{
        "data": [{}, {
            "label": {
                "normal": {
                    "show": true,
                    "position": "center",
                    "textStyle": {
                        "fontSize": "30",
                        "fontWeight": "bold"
                    }
                }
            }
        }]
    }],
    "color": ["#ffffff", "#004151", "#00B7BF", "#F9334C", "#FFAF00", "#004151", "#00B7BF", "#F9334C"]
}

注:需勾选数据标签内容,不然会显示分类名称.(设置方式有两种,1.如下图设置,2,修改扩展属性实现)


Viewtracker License Missing

There is a problem with the license of the Viewtracker addon. Please check if you have a valid license.

授权码细节


  • 无标签