我正在以这种方式生成图表(使用 Google Chart):
<%=
area_chart [{:name => "Sold items", data: @items.group(:created_at).count}], :library => {hAxis: {title: "Period"}, vAxis: {title: "Amounts in UDS"}, title: "History Of Sales"}
%>
图表生成得很好,但我正在尝试更改一件事 - 工具提示如下所示:
工具提示中的信息是正确的,但我不想显示Oct 19, 2014, 2:00:00 AM我只想显示Oct 19, 2014。
有什么办法可以用 Chartkick 做到这一点吗?
非常感谢您的宝贵时间。