问题描述
我们如何在 Lightning 图表中更改标签字体大小和颜色 在此处输入图片说明
return builder
.addRow(name)
.addRow(yValue.toFixed(2))
.addRow(timedata[xValue.toFixed(0)])
也可以单独改变颜色和大小只为 .addRow(yValue.toFixed(2))
??
解决方法
AutoCursor 结果表字体大小/文本颜色可以像这样更改
chart.setAutoCursor((autoCursor) => autoCursor
.setResultTable((resultTable) => resultTable
.setFont((font) => font.setSize(12))
.setTextFillStyle(new SolidFill({ color: ColorRGBA( 255,0 ) }))
)
)