Colors chartkick chart.js更改轴的颜色和轴标题的颜色

Colors chartkick chart.js更改轴的颜色和轴标题的颜色,colors,ruby-on-rails-3.2,chart.js,axis-labels,chartkick,Colors,Ruby On Rails 3.2,Chart.js,Axis Labels,Chartkick,在我的rails应用程序中,我添加了一些图表,并希望更改黑色的颜色(见图)。 以下是我认为的代码: <%= line_chart $tweet_per_day, id: "line_chart $tweet_per_day", width: "400px", height: "300px", ytitle: "Tweets count", ytitleFontColor: ["pink", "#F76161"], colors: ["blue", "#76BDD1"], download

在我的rails应用程序中,我添加了一些图表,并希望更改黑色的颜色(见图)。

以下是我认为的代码:

<%= line_chart $tweet_per_day, id: "line_chart $tweet_per_day", width: "400px", height: "300px", ytitle: "Tweets count", ytitleFontColor: ["pink", "#F76161"], colors: ["blue", "#76BDD1"], download: "top_hashtags", refresh: 60 %>  

图表的颜色正确,但轴标题是黑色的,轴也是黑色的。

好的,看起来有一些。所以我换成了。
我删除了application.html.erb和application.js中的chart.js代码,并将其替换为。
更改我的折线图很有帮助。
以下是我眼中的工作代码:

<%= line_chart $tweet_day, id:"line_chart $tweet_day",xtitle: "Day of the Week", ytitle: "Tweets Count", colors: ["#C2F4FF"], download: "tweet_day", refresh: 60, 
  library: { 
    vAxis: { baselineColor: "#F76161",  gridlines: {Color: "" }, textStyle: { color: "#76BDD1"}, titleTextStyle: {color: "#F76161"} }, 
    hAxis: { baselineColor: "#F76161" , gridlines: {Color: "" }, textStyle: { color: "#76BDD1"} , titleTextStyle: {color: "#F76161"} } } %>   

希望它能帮助别人