Liking cljdoc? Tell your friends :D

cljplot.scale


bandsclj

(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:

  • 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.

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

inverseclj

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

linearclj

(linear)
(linear xs)

Linear mapping function

Linear mapping function
sourceraw docstring

logclj

(log)
(log domain)
(log base [start end])

Log mapping function

Log mapping function
sourceraw docstring

log1pclj

(log1p)
(log1p domain)
(log1p base [start end])

Add 1 to the values

Add 1 to the values
sourceraw docstring

ordinalclj

(ordinal xs)
(ordinal type xs)
(ordinal type info xs)
source

powclj

(pow)
(pow domain)
(pow exponent [start end])

Power scale

Power scale
sourceraw docstring

quantileclj

(quantile xs)
(quantile steps-no xs)
(quantile steps-no estimation-strategy xs)
source

scale-mapclj

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

splice-rangeclj

(splice-range cnt)
(splice-range cnt start end)

Splice range to get cnt number of points.

Splice range to get `cnt` number of points.
sourceraw docstring

splineclj

(spline)
(spline xs)

Spline mapping function

Spline mapping function
sourceraw docstring

thresholdclj

(threshold steps)
(threshold steps-no [start end])
source

ticks-cljmultimethod

source

time-intervalclj

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

update-scaleclj

(update-scale sc field value)
source

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

× close