(gist-plot! plot
&
{:keys [name description public]
:or {name "plot"
description
"vega/vega-lite plot; see github.com/metasoarous/oz"
public false}})
Create a gist with the given plot data.
Create a gist with the given plot data.
(publish-plot! plot
&
{:as opts
:keys [data width height mode name]
:or {mode :vega-lite name "plot"}})
Publish plot via gitst-plot!
, and print out a vega-editor url correspond to said gist.
Publish plot via `gitst-plot!`, and print out a vega-editor url correspond to said gist.
(v! spec
&
{:as opts
:keys [data width height host port mode]
:or {port (:port (clojure.core/deref server/web-server_) 10666)
host "localhost"
mode :vega-lite}})
Take a vega or vega-lite clojure map spec
and POST it to a oz
server running at :host
and :port
to be rendered.
Take a vega or vega-lite clojure map `spec` and POST it to a oz server running at `:host` and `:port` to be rendered.
(vega spec)
Reagent component that renders vega
Reagent component that renders vega
(vega-lite spec)
Reagent component that renders vega-lite.
Reagent component that renders vega-lite.
(view! spec
&
{:keys [data host port mode]
:or {port (:port (clojure.core/deref server/web-server_) 10666)
host "localhost"}})
More general view function which takes specs in hiccup form, where vega/vega-lite blocks can be
passed as [:vega-lite plot-data]
(e.g.), nested within arbitrary hiccup.
More general view function which takes specs in hiccup form, where vega/vega-lite blocks can be passed as `[:vega-lite plot-data]` (e.g.), nested within arbitrary hiccup.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close