             indexed (map-indexed idx-fn stats)
             indexed-20 (map-indexed idx-fn (take-last 20 stats))
             day-stats (or (:mouse-over @local) (second (last stats)))
-            past-7-days (cd/past-7-days stats :time-by-saga)]
+            past-7-days (cd/past-7-days stats :time-by-saga)
+            fmt-date (.format (js/moment (:date-string day-stats)) "ddd YY-MM-DD")]
         [:div
          [:div.times-by-day
           [:div [cc/horizontal-bar sagas :saga-name past-7-days 0.001]]

                     :x        (* 30 idx)
                     :y        y
                     :width    26
                     :height   h}]))]))))

(defn bars-by-story
  "Renders chart with daily recorded times, split up by story."

                 y (* y-scale (+ hh 2) 60 60)
                 y (if (pos? manual) (- y h) y)]
             ^{:key (str story-name hh)}
             [:rect {:fill           (cc/item-color story-name)
                     :on-mouse-enter #(prn story-name hh summed)
                     :x              (* 30 idx)
                     :y              y
                     :width          26
                     :height         h}]))]))))

(defn bars-by-ts
  "Renders chart with daily recorded times, split up by story."
