如何更改闪电图中的标签大小

时间:2021-03-31 18:12:01

标签: lightningchart

我们如何在 Lightning 图表中更改标签字体大小和颜色 在此处输入图片说明

我使用如下代码添加标签

 return builder
        .addRow(name)
        .addRow(yValue.toFixed(2))
        .addRow(timedata[xValue.toFixed(0)])

也可以单独改变颜色和大小只为 .addRow(yValue.toFixed(2)) ??

1 个答案:

答案 0 :(得分:1)

AutoCursor 结果表字体大小/文本颜色可以像这样更改

chart.setAutoCursor((autoCursor) => autoCursor
   .setResultTable((resultTable) => resultTable
      .setFont((font) => font.setSize(12))
      .setTextFillStyle(new SolidFill({ color: ColorRGBA( 255, 0, 0 ) }))
   )
)

AutoCursorXY API

ResultTable API