multi-plots -multiple plots in one chart -multiple plots horizontal
multi-plots -multiple plots in one chart -multiple plots horizontal
(build-series width time last? m)builds a vega lite plot-spec for a single series
builds a vega lite plot-spec for a single series
(container-lite)vega-lite container (version 4)
vega-lite container (version 4)
(convert-series series time)converts a series [vector of number] to a vega data spec with name
converts a series [vector of number] to a vega data spec with name
(multi-plot & plots)plots one or more plots (aligned vertically) each plot can contain one or more series
example
series-plot map
:data - vector of (length n)
all other parameter r¡are optional:
:color
:orient :left :right
:title of the axis
:height
:width
(def a [1 2 4 3 2]) (def b [-1 1 -2 3 0]) (def c [6 5 1 7 5])
(multi-plot {:width 100} {:data c :orient :left :title "C" :color "blue" :height 20 } [{:data a :orient :right :title "A" :color "red" :height 50} {:data b :orient :left :title "B" :height 50}]))
plots one or more plots (aligned vertically)
each plot can contain one or more series
example
- first plot is single line, therefore plot params have to be set {}
(as we do below), or first plot is wrapped with []
series-plot map
:data - vector of (length n)
all other parameter r¡are optional:
:color
:orient :left :right
:title of the axis
:height
:width
(def a [1 2 4 3 2])
(def b [-1 1 -2 3 0])
(def c [6 5 1 7 5])
(multi-plot {:width 100}
{:data c :orient :left :title "C" :color "blue" :height 20 }
[{:data a :orient :right :title "A" :color "red" :height 50}
{:data b :orient :left :title "B" :height 50}])) cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |