[Chartjs]-Can't change labels' font color. Chartkick Ruby on rails

1👍

assuming you’re creating a BarChart from Google Charts,
see the configuration options

for the legend, need to use –> legend.textStyle — (not legend.labels)
and the following options do not exist…

legend.textStyle.backgroundColor
legend.textStyle.fontColor

for font color, use –> color

legend: { position: "left", textStyle: { fontSize: 16, color: "#fff"} }

Leave a comment