   (reagent/render [dashboard]
                   (js/document.getElementById "metlog"))
   (.addEventListener js/window "resize" on-window-resize)
-  (on-window-resize nil)
   (go
     (swap! dashboard-state assoc :series (<! (<<< fetch-series-names)))))
 

        @window-width
        @series-state
        [:div
         [:canvas {:width (dom-node-width @dom-node default-tsplot-width)
                   :height (dom-node-height @dom-node default-tsplot-height)}]])})))

(defn series-pane [ series ]
  [:div.series-pane

            {:query-window-secs query-window-secs}
            cb))

(defn tsplot-draw [ canvas series-data ]
  (let [ ctx (.getContext canvas "2d")]
    (tsplot/draw ctx (.-clientWidth canvas) (.-clientHeight canvas) series-data)))

(defn series-tsplot [ series ]
  (let [dom-node (reagent/atom nil)
