【发布时间】:2016-01-22 09:08:51
【问题描述】:
请问谁能帮我解决这个问题? 我有一个 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%>
You can see the image of what I am talking about here
图表以我想要的方式显示,但 Yaxis 显示的是十进制数字而不是整数。 请问如何修改 Yaxis 以显示整数?
【问题讨论】:
标签: ruby-on-rails ruby chartkick