user5638970
user5638970

Reputation:

Change Axis Line color in Chart created using chart.js

Chart Image

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

Answers (1)

Starscream1984
Starscream1984

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

Related Questions