Chartjs sample line chart setup doesn't show dataLabels

👍:0

What a silly problem. It turns out that the default color for the labels is #666, which is the same as my background color. I was using the wrong attribute name to change the color of the labels, the proper attribute to set the “data label” color is: scaleFontColor

Leave a comment