Chart.js是否可以设置标签样式?

时间:2015-04-15 12:33:51

标签: javascript chart.js

我使用chart.js显示一些带有以下标签的长折线图:

labels : ["2014","sem I","sem II","sem III","sem IV","2015","sem I","sem II","sem III","sem IV","2016","sem I","sem II","sem III","sem IV",]

我想知道的是,为了更好的可读性,是否有可能只用粗体的年份?

1 个答案:

答案 0 :(得分:1)

来自documentation

// String - Scale label font weight style
scaleFontStyle: "normal",