     (:require[om.core :as om :include-macros true]
              [om.dom :as dom :include-macros true]
              [cljs.core.async :refer [<!]]
+             [cljsjs.chart]
              [sidequarter-frontend.api :as api]))
 
 (enable-console-print!)

                 (let [response ((<! (api/get-stats (data :id))) :body)
                       stats (:stats response)]
                   (om/update-state! owner [:graph] #(conj % stats))))
               ) 2000)]
        (om/set-state! owner [:interval-id] interval-id)))
    om/IRenderState
    (render-state [_ {:keys [graph]}]
      (.log js/console (pr-str graph))
      (dom/div #js {:className "col s12"}
               (dom/h5 nil "Live stats")))
    om/IWillUnmount
    (will-unmount [_]
      (js/clearInterval (om/get-state owner [:interval-id])))))

  (reify
    om/IInitState
    (init-state [_]
      {:graph [] :interval-id nil :graph-chart nil})
    om/IDidMount
    (did-mount [_]
      (let [interval-id
