(bands)
(bands b)
(bands {:keys [padding-in padding-out align]
:or {padding-in 0.0 padding-out 0.0 align 0.5}}
bands)
Creates sequence of bands for given range and padding.
Bands are evenly distributed intervals with padding.
Each band is a map with following keys:
Input parameters are:
Padding is calculated the same way as in d3
. It's a proportion of the step.
Creates sequence of bands for given range and padding. Bands are evenly distributed intervals with padding. Each band is a map with following keys: * start - interval start * end - interval end * point - selected point (default: midpoint) Input parameters are: * bands - number of the bands (default: 1) or sequence of values * padding-in - padding between bands (default: 0.0) * padding-out - border padding (default: 0.0) * align - position of the selected point (0.0 - left, 1.0 - right, 0.5 - midpoint, default) Padding is calculated the same way as in `d3`. It's a proportion of the step.
(inverse s v)
Return inverse scaling function [0,1]->domain value. If not available, return nil
.
Return inverse scaling function [0,1]->domain value. If not available, return `nil`.
(log)
(log domain)
(log base [start end])
Log mapping function
Log mapping function
(log1p)
(log1p domain)
(log1p base [start end])
Add 1 to the values
Add 1 to the values
(scale-map scale-def)
(scale-map scale-def {tick-values :ticks domain :domain ofmt :fmt})
Create scale data from definition
Create scale data from definition
(splice-range cnt)
(splice-range cnt start end)
Splice range to get cnt
number of points.
Splice range to get `cnt` number of points.
(time-interval [start end])
Create time interval, works for any java.time.temporal.Temporal
instance.
Create time interval, works for any `java.time.temporal.Temporal` instance.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close