multi-plots -multiple plots in one chart -multiple plots horizontal
multi-plots -multiple plots in one chart -multiple plots horizontal
(build-series-all width time last? m)
builds a vega lite plot-spec for a single series
builds a vega lite plot-spec for a single series
(build-series-rect width _ _ 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 timeseries plots (stacked vertically) input: [options vector-of-plots]
options
a plot contains either
a series is a map
example: (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}]))
note that the first plot is single series (therefore a map), the second plot has 2 series (vector of maps)
plots one or more timeseries plots (stacked vertically) input: [options vector-of-plots] options - is optional - if specified, a map with optional keys: :width (pixels) :time (time data as unix-long) a plot contains either - one series (map) - more series (vector of maps) a series is a map - mandatory keys: :data - vector of (length n) - optional keys: :color :orient :left :right :title (of the axis) :height :width example: (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}])) note that the first plot is single series (therefore a map), the second plot has 2 series (vector of maps)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close