   (:require [om.core :as om :include-macros true]
             [om.dom :as dom :include-macros true]
             [load-test-om.utils :as utils]))
+
+(def width 446)
+(def height 150)
+(def top 20)
+(def right 10)
+(def bottom 30)
+(def left 30)
 
 (defn draw-points [el scales axes data]
   (let [svg (.select (.select js/d3 el) "svg")

        (.datum (apply array datum))
        (.attr "d" line))))

(defn get-scales [domain width height]
  {:x (-> (.. js/d3 -time scale)
          (.domain (apply array (:x domain)))
          (.range #js [0 width]))


    om/IRender
    (render [_]
      (dom/div #js {:className "chart hit-rate-chart"}
               (dom/svg #js {:className "d3"
                             :width (+ width left right)
                             :height (+ height top bottom)}
                        (dom/g #js {:transform (str "translate(" left "," top ")")}
                               (dom/g #js {:className "x axis"
                                           :transform (str "translate(0, " height ")")})
                               (dom/g #js {:className "y axis"}
                                      (dom/text #js {:transform "rotate(-90)"}))
                               (dom/path #js {:className "line"})))))))
