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

  (:require [om.core :as om :include-macros true]
            [om.dom :as dom :include-macros true]
            [load-test-om.utils :as utils]))

(defn draw-points [el scales axes data]
  (let [svg (.select (.select js/d3 el) "svg")

   :y (min-max (map :y data))})

(defn update-chart [el data]
  (let [scales (get-scales (domain data))
        axes   (get-axes scales)]
    (draw-points el scales axes data)))

