                     :properties {:axis {:strokeWidth {:value 0}}}}]
             :marks facetted-marks})))
 
-(def top-level
-  {:width 800
-   :height 600
-   :padding {:top 100, :left 100, :bottom 100, :right 200}
-   :data []
-   :scales []
-   :axes []
-   :marks []
-   :legends []
-   :signals []})
-
-(defn wrap-dims
-  [spec]
-  (merge-spec top-level spec))
+
 
 (defn assoc-hover
   [vg hover-spec]

(ns gyptis.vega-templates
  "Helper functions that return vega.js plot declarations"
  (:require [gyptis.util :refer [merge-spec] :as u]))

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;
(def ^:dynamic *table* "table")
(def ^:dynamic *x* :x)
(def ^:dynamic *y* :y)

                :properties
                {:update {:path {:field "layout_path"}
                          :fill {:scale "fill" :field *fill*}}
                 :hover {:fill {:value "steelblue"}}}}]]
    {:data data
     :scales scales
     :marks marks
     :legends [{:fill "fill"}]}))
