1
請任何人都可以幫我解決這個問題嗎? 我有一個紅寶石的rails應用程序,我正在嘗試使用ChartKick。 我有下面的代碼在我的控制器來獲取所有出版物:Chartkick yAxis和Rails
@mentor_pub = Publication.all.where(user: current_user).order("mentor ASC")
,我使用下面的代碼在我的意見。
<%= column_chart @mentor_pub.group(:mentor).count, height: "600px", discrete: true%>
You can see the image of what I am talking about here
圖表顯示的是我想要的方式,但Y軸的顯示而不是整數十進制數。 請如何修改Yaxis以顯示整數?