 
 (def data (cal-grid))
 
-
 (defn- graph [data]
   (reagent/create-class
     {:reagent-render      (fn [] [:div [:svg {:width width :height height}]])
      :component-did-mount (fn []
+                              ; @TODO: there is an issue with cljs->js and DateTime - use string instead
                               (let [d3data (clj->js data)
                                     row    (.. js/d3
                                                (select "svg")

            [cljs-time.core :as t]
            [cljs-time.coerce :as ct]
            [cljs-time.periodic :refer [periodic-seq]]
            [common.util :refer [log js-log]]))

;; todo - remove and add as parameters to the component
(def width 900)

              (conj acc
                    (reduce (fn [acc week]
                              (let [x (* week edge)]
                               (conj acc {"x"    x
                                          "y"    y
                                          "edge" edge
                                          "date" (compute-date week day)})))
                            []
                            (range weeks)))))
           []
