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

正在查看旧版本。 查看 当前版本.

与当前比较 查看页面历史

版本 1 当前 »

(本文档仅供参考)

问题说明:

如何调整进度图的描述信息,以及字体的颜色?

解决方案:

参考如下仪表盘宏处理(V11版本测试验证通过)

function main(page: IPage, portlet: IEChartsPortlet) {
    let options = portlet.getChartOptions();
    let title = options.title;

    title.forEach((item, index) => {
        // 替换文本内容
        item.text = item.text.replace(/指标值/g, '付款金额').replace(/目标值/g, '收款金额');
        item.textStyle = item.textStyle || {};
        item.textStyle.color = '#52c41a'; // 绿色
        
    });

    portlet.setChartOptions(options);
}

  • 无标签