org.clojars.punit-naik.core
axis-data
(axis-data data axis-fld-name)
gen-chart-spec
(gen-chart-spec id data {:keys [x-fld-name], :or {x-fld-name "x"}, :as x-fld-info} {:keys [y-fld-name], :or {y-fld-name "y"}, :as y-fld-info} {:keys [chart-type chart-interpolate tooltip? dash-fld-name opacity-fld-name increase-hover-area? zoom-on-scroll? dashed-lines? add-opacity? select-on-click? disable-legend?], :or {tooltip? true, opacity-fld-name "opacity", dash-fld-name "stroke", select-on-click? false, chart-interpolate "monotone", dashed-lines? false, add-opacity? false, chart-type "line", disable-legend? false}, :as chart-info} {:keys [stack-fld-name stack-fld-type stack-fld-title stack-fld-opts custom-stack-colours-map], :or {stack-fld-name "label", stack-fld-type "nominal", stack-fld-title "Labels", stack-fld-opts {:title stack-fld-title, :legend {:orient "top"}}}, :as stack-info})
init
(init)
Initialises the Vega-lite spec with default values and returns the same
mark-config
(mark-config {:keys [chart-type chart-interpolate point?], :or {chart-type "line", chart-interpolate "monotone"}})