I am having data in Total model which contain date:datetime
i am able to print my whole data but not able to specify by date (pointStart to pointEnd)
it's not working.
series:
[{
pointInterval: <%= 1.day * 1000 %>,
pointStart: <%= Total.reorder(:date).first.date.to_i * 1000 %>,
pointEnd: <%= (Time.now-27.day).to_i * 1000 %>,
name: "total-user",
data:<%= Total.all.collect(&:total_user)%>
}]
Aucun commentaire:
Enregistrer un commentaire