Liking cljdoc? Tell your friends :D

pinkgorilla.ui.gorilla-plot.multi

multi-plots -multiple plots in one chart -multiple plots horizontal

multi-plots
-multiple plots in one chart
-multiple plots horizontal
raw docstring

build-seriesclj

(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
sourceraw docstring

container-liteclj

(container-lite)

vega-lite container (version 4)

vega-lite container (version 4)
sourceraw docstring

convert-seriesclj

(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
sourceraw docstring

make-linear-axisclj

(make-linear-axis size)
source

make-time-axisclj

(make-time-axis size)
source

multi-plotclj

(multi-plot & plots)

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}]))

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}]))  
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close