我有一個基本的PageView模型,用於跟蹤打開特定頁面的時間。flotilla:具體日期範圍的最小/最大值
我想顯示一段時間內的命中圖。我正在使用flotilla來生成圖表。
現在,如果我有一系列時間段的PageViews,但我想顯示一個時間段,即使沒有PageViews flotilla似乎呈現的圖形只能封裝第一個和最後一個PageView(不是我想要的最小/最大值)。
這裏是我的代碼:
chart("graph", { "Store 1" => { :collection => @store_one, :x => :date, :y => :sales }},:xaxis => {:mode=>"time", :min => @store_one.created_at,:max => Date.current})
但是,如果在同一天Date.current創建商店的日期範圍不會被渲染。
我也試過:mode=>"date"
和:mode=>"datetime"
但沒有運氣。
任何想法?
試過,沒有改變 – cbrulak 2010-07-05 17:15:38