(本文档仅供参考)
问题说明:
如何调整进度图的描述信息,以及字体的颜色?
解决方案:
参考如下仪表盘宏处理(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); }