   (-> (.axis js/d3.svg)
         (.tickValues (clj->js (range 0 (inc build-duration) (/ build-duration 4))))
         (.scale axis-scale)
-        (.tickFormat time-axis-tick-formatter)
+        (.tickFormat #(str (datetime/as-duration %) "m"))
         (.orient "top"))))
 
 (defn build-duration [start-time stop-time]

            (.attr "height"    container-bar-height)
            (.attr "y"         container-position)
            (.attr "x"         step-start-pos)
            (.on   "mouseover" highlight-selected!)
            (.on   "mouseout"  reset-selected!)
          (.append "title")
            (.text #(gstring/format "%s (%s)" (aget % "name") (aget % "index"))))))


(ns frontend.components.build-timings
  (:require [om.core :as om :include-macros true]
            [goog.string :as gstring]
            [frontend.datetime :as datetime]
            [frontend.models.build :as build])
  (:require-macros [frontend.utils :refer [html]]))

