请问谁能帮我解决这个问题?我有一个 ruby on rails 应用程序,我正在尝试使用 ChartKick。我的控制器中有以下代码来获取所有出版物:
@mentor_pub = Publication.all.where(user: current_user).order("mentor ASC")
我在我的观点中使用下面的代码。
<%= column_chart @mentor_pub.group(:mentor).count, height: "600px", discrete: true%>
图表以我想要的方式显示,但 Yaxis 显示的是十进制数字而不是整数。请问我将如何修改 Yaxis 以显示整数?