【问题标题】:How i can replace "legend" word of a chart in Angular ngx-charts?我如何替换Angular ngx-charts中图表的“图例”字?
【发布时间】:2019-09-15 14:25:57
【问题描述】:

我在我的 Angular 8 应用程序中使用 ngx-charts。我已经显示了一个“分组垂直条形图”,这个有一个带有标签的部分,我想翻译成西班牙语;它说“Legend”,我想用“Leyenda”替换它,但我不知道如何,因为库没有更改该文本的特定选项。我该怎么做?

【问题讨论】:

    标签: angular angular8 ngx-charts


    【解决方案1】:

    参考这个documentation有一个名为legendTitle的属性,你可以改变这个属性来达到你的目的。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-01-27
      • 2019-11-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多