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

(def ^:dynamic *size* :size)
(def ^:dynamic *facet-x* :facet_x)
(def ^:dynamic *facet-y* :facet_y)

(def ^:dynamic *geopath* :geopath)

(defn- first-non-nil
  [data field]

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

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