【问题标题】:How to change the color of the labels using Angular Charts如何使用角度图表更改标签的颜色
【发布时间】:2016-07-06 16:26:59
【问题描述】:

我需要条形图的标签是不同的颜色。一切正常只需要标签是白色而不是默认的灰色。

<canvas id="bar" class="chart chart-bar whiteFont"
    chart-data="ageData" chart-labels="ageLabels"
    colours="colours">
</canvas>

【问题讨论】:

  • 你能在 plunkr 或其他地方分享你的 sn-p 吗?

标签: javascript html angularjs


【解决方案1】:

将您的 colours 推迟为数组。欲了解更多信息,你可以看到这个post

【讨论】:

  • 看起来该解决方案不适用于 OP 要求的标签
猜你喜欢
  • 2021-03-12
  • 2020-08-03
  • 2016-02-23
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2018-02-17
相关资源
最近更新 更多