           (d/p {:class "text-muted text-center"
                 :style {:display (if (:result result) "none" "block")}}
             "Please add items to the query grid.")
-          (d/div {:id (vc-by-ad-result-chart-id query-idx)
+          (d/div {:id (vc-by-ad-and-sex-result-chart-id query-idx)
                   :style {:height (if (:result result) "250px" "0")}}))))))
 
 ;; ---- Query -----------------------------------------------------------------

                {:opts (assoc opts :query-idx idx :collapsed collapsed)})
      (om/build visit-count-by-study-event-result (:vc-by-se-result query)
                {:opts (assoc opts :query-idx idx :collapsed collapsed)})
      (om/build visit-count-by-age-decade-result (:vc-by-ad-result query)
                {:opts (assoc opts :query-idx idx :collapsed collapsed)}))))

;; ---- Workbook --------------------------------------------------------------

          (d/div {:id (vc-by-se-result-chart-id query-idx)
                  :style {:height (if (:result result) "250px" "0")}}))))))

(defn vc-by-ad-and-sex-result-chart-id [query-idx]
  (str "visit-count-by-age-decade-result-chart-" query-idx))

(defcomponent visit-count-by-age-decade-result
