    {:line-width 1
     :stroke-style "#000000"
     :line-dash #js [ ]}})
-
-(defn floor [ x ]
-  (.floor js/Math x))
-
-(defn pixel-snap [ t ]
-  (+ 0.5 (floor t)))
 
 (defn range-contains-zero? [ range ]
   (and (< (:min range) 0.0)

            [cljs-time.format :as time-format]
            [cljs-time.coerce :as time-coerce]))

(def dtf-axis-label (time-format/formatter "MM-dd HH:mm"))
(def dtf-header (time-format/formatter "yyyy-MM-dd HH:mm"))
(def x-axis-space 20)


(def pixels-per-y-label 20)

(def y-line-intervals
  (mapcat (fn [ scale ]
            (map #(* % (.pow js/Math 10 scale))
                 [ 1 2 5 ]))
          (range -3 3)))

(def stroke-styles
  {:grid
   {:line-width 0
    :stroke-style "#707070"
    :line-dash #js [ 2 2 ]}

   :grid-emphasis
   {:line-width 0
