Reputation:
I have created the above chart using chart.js library. I want to change the horizontal and the vertical axis colors in this chart. I have tried 'scaleFontColor' but it changes color of only labels.
var myBarChart = new Chart(ctx).Bar(data, { scaleFontColor: "white" });
Is there any other property for changing the color of horizontal and vertical axis?
Upvotes: 2
Views: 5723
Reputation: 3062
I found this fiddle with an example chart in it.
You can change the axes color with the property:
{
scaleLineColor: "red"
}
Upvotes: 2