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

(此文档仅供参考)

问题1

如何修改图例样式,以及图例和文字的位置


解决方案

可以使用扩展属性实现

{
    "legend": {
        "icon": "circle", //这个字段控制形状  类型包括 circle,rect,roundRect,triangle,diamond,pin,arrow,none
        "itemWidth": 10,
        "itemHeight": 10,
        "align": "left" //图例标记和文本的对齐。默认自动,可选:'auto'/'left'/'right'
    }
}


问题2:调整饼图图例文字间距

V10.5.8以上的仪表盘中,饼图图例显示内容可勾选分类、指标、占比,有的时候觉得图例的文字间距距离太远,希望调整间距。

image2023-11-10_18-17-17.pngimage2023-11-10_18-15-4.png

解决方案:

可参考如下扩展属性:

{
    "legend": {
        "textStyle": {
            "rich": {
                "a": {
                    "width": 3,
                    "padding": [3,12,5,6]
                }
            }
        }
    }
}

效果:

image2023-11-10_18-16-48.png

Viewtracker License Missing

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

授权码细节