                  :svg nil
                  :parsets-data []
                  :highlighted {}
-                 :parsets-cursor (om/root-cursor (atom {:div {:width "90%" :height 200}}))
                  :show-dimensions (get-in opts [:dimensions :show])
                  :show-dimensions? #(:show-dimensions (om/get-state owner))}))
   (will-mount [_]
               (do-parsets-agg owner))
-  (render-state [_ {:keys [parsets-agg get-agg-terms agg-prefix-terms parsets-cursor show-dimensions]}]
+  (render-state [_ {:keys [parsets-agg get-agg-terms parsets-data show-dimensions]}]
                 (html
                  [:.card {:ref "parsets-card"}
                   [:.card-content

                   [:.row
                    [:.col {:class (if show-dimensions "s9" "s12") :id "parsets" :ref "parsets-div"}]
                    [:.col {:class (if show-dimensions "s3" "hide") :ref "parsets-dims"}
                     (if (:terms-aggs parsets-cursor)
                       (for [term (get-agg-terms)]
                         (let [term-name (name term)]
                           (build-bar parsets-cursor owner agg-prefix-terms term-name (-> (:sub agg) keys first)))))
                     ]
                    ]]]
                 ))

      (.dimensions (clj->js (map name (get-parsets-agg))))
      (.value (fn [d i] (. d -value)))))

(defn highlight [data facets]
  (filter #(every? (fn [[k sel]] (or (empty? sel) (contains? sel (k %)))) facets) data))

