是否可以使用Chartkick时间轴显示一天的时间表?
例如,有这样的事情:
<%= timeline [
["Monday", "00:00:00", "02:00:00"],
["Tuesday", "05:00:00", "10:00:00"]
] %>
答案 0 :(得分:0)
传递给时间轴的数组必须采用以下格式:
[["Monday", "0000-00-00 00:00:00", "0000-00-00 00:15:00"],
["Tuesday", "0000-00-00 01:05:00", "0000-00-00 04:00:00"]]