Liking cljdoc? Tell your friends :D

active-viz.scale


>>cljs

(>> scale1 scale2)

Combines two scales. Note that in evaluation scale1 is evaluated first.

Combines two scales. Note that in evaluation scale1 is evaluated first.
sourceraw docstring

adjust-rangecljs

(adjust-range scale [range-min range-max])

Simply sets a new range in the last succ of scale, without altering anything else

Simply sets a new range in the last succ of scale, without altering anything else
sourceraw docstring

domaincljs

(domain scale)

Returns the domain of a scale. That is the domain of the first scale

Returns the domain of a scale. That is the domain of the first scale
sourceraw docstring

invertcljs

(invert scale)

Inverts the range of a scaling for the specified range. This is done by calculating the center of this range and mirroring target values. Thus, ranges must be defined correctly, thus.

Inverts the range of a scaling for the specified range.
This is done by calculating the center of this range and mirroring target values.
Thus, ranges must be defined correctly, thus.
sourceraw docstring

linear-scale->tickscljs

(linear-scale->ticks scale num-ticks)
source

make-linear-scalecljs

(make-linear-scale [domain-min domain-max] [range-min range-max])
source

make-time-scalecljs

(make-time-scale [domain-min domain-max] [range-min range-max])
source

padcljs

(pad scale padding)

Pads a scale in the sense of adding a offset defined in padding to the target range.

Pads a scale in the sense of adding a offset defined in `padding` to the target range.
sourceraw docstring

pad-to-zerocljs

(pad-to-zero scale)

Pads a scale to 0. That is, it subtracts or adds an offset to the smallest range boundary, setting it to 0

Pads a scale to 0. That is, it subtracts or adds an offset to the smallest range boundary, setting it to 0
sourceraw docstring

rangecljs

(range scale)

Returns the range of a scale. That is the range of the last scale in succ.

Returns the range of a scale. That is the range of the last scale in succ.
sourceraw docstring

scalecljs

(scale scale value)

Scales a value using the given scale.

Scales a value using the given scale.
sourceraw docstring

scale-invertedcljs

(scale-inverted scale param)

Scales the value inverted (reversed) using the given scale.

Scales the value inverted (reversed) using the given scale.
sourceraw docstring

time-scale->tickscljs

(time-scale->ticks scale type num-ticks)
source

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

× close