【问题标题】:How to change label size in lightningchart如何在闪电图中更改标签大小
【发布时间】:2021-03-31 18:12:01
【问题描述】:

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

我使用如下代码添加标签

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

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

【问题讨论】:

    标签: lightningchart


    【解决方案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

    【讨论】:

      猜你喜欢
      • 2012-10-14
      • 1970-01-01
      • 2019-08-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-11-10
      • 2021-07-25
      相关资源
      最近更新 更多