7

I'm using the chart.js to display some long line charts with the following labels:

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",]

All I want to know is if its possible to make only the years in bold for a better readability?

Markus
  • 3,054
  • 6
  • 34
  • 46
calculataur
  • 173
  • 2
  • 13
  • https://stackoverflow.com/a/48580585/7186739 – dev Feb 10 '21 at 19:09
  • Hello from 2021, looks like ChartJS added a way to add your own html legend via plugin: https://www.chartjs.org/docs/3.6.0/samples/legend/html.html – Wompinalong Feb 16 '22 at 02:46

1 Answers1

1

From the documentation:

// String - Scale label font weight style
scaleFontStyle: "normal",
Dagriel
  • 564
  • 2
  • 12