                    (.tickFormat js/Math.abs))
         x-scale (-> (js/d3.scale.ordinal)
                     (.domain (clj->js
-                              (map :build_num builds)))
+                              (range bar-count)))
                     (.rangeBands #js[0 (:width plot-info)] 0.5))
         svg (-> js/d3
                 (.select el)

        (.insert "rect")
        (.attr #js {"class" #(str "bar " (aget % "outcome"))
                    "y" #(y-pos-scale (aget % "build_time_minutes"))
                    "x" #(x-scale (aget % "build_num"))
                    "width" (.rangeBand x-scale)
                    "height" #(- y-middle (y-pos-scale (aget % "build_time_minutes")))}))


        (.insert "rect")
        (.attr #js {"class" "bar queue"
                    "y" y-middle
                    "x" (fn [_ i]  (x-scale i))
                    "width" (.rangeBand x-scale)
                    "height" #(- (y-neg-scale (aget % "queued_time_minutes")) y-middle)}))

