 
 (defn chart-summary
   "Show min, max, delta and average of chart data."
-  [cursor owner]
+  [cursor owner {:keys [border]}]
   (reify
     om/IInitState
     (init-state [_]

             (fetching-row)
             ;; Chart and infoboxes
             (let [{:keys [all-groups]} (:chart data)
                   {:keys [units]} (:sensors data)]
               (if (and (some seq all-groups) (seq units))
                 (let [left-group (first all-groups)]
                   [:div.col-md-12
                    [:div.col-md-2
                     (for [series left-group]
                       (let [c (chan (sliding-buffer 100))]
                         (om/build chart-summary {:measurements (clj->js series)} {:init-state {:chan (tap mult-chan c)}})))]
                    [:div.col-md-8
                     [:div#chart {:style {:width "100%" :height 600}}
                      (om/build chart/chart-figure {:measurements (mapv #(into [] (flatten %)) all-groups)}
                                {:opts {:chan hovering-chan}})]]
                    [:div.col-md-2
                     (when (> (count all-groups) 1)
                       ;; Always max 2 groups as max 2 units
                       (for [series (last all-groups)]
                         (let [c (chan (sliding-buffer 100))]
                           (om/build chart-summary {:measurements (clj->js series)} {:init-state {:chan (tap mult-chan c)}}))))]])
                 (no-data-row))))]]]]))))

(when-let [charting (.getElementById js/document "charting")]

            description                (-> measurements first (aget "description"))]
        (html
         [:div {:style {:font-size "80%"}}
          (bootstrap/panel border "panel-info"
           [:div [:p {:style {:word-wrap "break-word" :font-size "80%"}} type]
            [:p {:style {:word-wrap "break-word" :font-size "80%"}} description]]
           [:div
