(make-scale domain-min domain-max range-min range-max params succ)
Construct a Scale
(A scale represents a function from a domain described by domain-min
and domain-max
into a
a target range between range-min
and range-max
. The range values must be numerical.
Domain boundaries as well as range boundaries are expected to be ordered correctly.
The actual mapping is defined in scale-fn
) record.
domain-min
(minimum domain value): access via active-viz.scale.types/scale-domain-min
domain-max
(maximum domain value): access via active-viz.scale.types/scale-domain-max
range-min
(minimum target range value. Expected to be numerical.): access via active-viz.scale.types/scale-range-min
range-max
(maximum target range value. Expected to be numerical.): access via active-viz.scale.types/scale-range-max
params
(mapping params from domain to range, defining the type of scale): access via active-viz.scale.types/scale-params
succ
(successor of the scale, when combined): access via active-viz.scale.types/scale-succ
Construct a `Scale` (A scale represents a function from a domain described by `domain-min` and `domain-max` into a a target range between `range-min` and `range-max`. The range values must be numerical. Domain boundaries as well as range boundaries are expected to be ordered correctly. The actual mapping is defined in `scale-fn`) record. `domain-min` (minimum domain value): access via [[active-viz.scale.types/scale-domain-min]] `domain-max` (maximum domain value): access via [[active-viz.scale.types/scale-domain-max]] `range-min` (minimum target range value. Expected to be numerical.): access via [[active-viz.scale.types/scale-range-min]] `range-max` (maximum target range value. Expected to be numerical.): access via [[active-viz.scale.types/scale-range-max]] `params` (mapping params from domain to range, defining the type of scale): access via [[active-viz.scale.types/scale-params]] `succ` (successor of the scale, when combined): access via [[active-viz.scale.types/scale-succ]]
(nop? thing)
Is object a Nop
record? See active-viz.scale.types/make-nop
.
Is object a `Nop` record? See [[active-viz.scale.types/make-nop]].
A scale represents a function from a domain described by domain-min
and domain-max
into a
a target range between range-min
and range-max
. The range values must be numerical.
Domain boundaries as well as range boundaries are expected to be ordered correctly.
The actual mapping is defined in scale-fn
A scale represents a function from a domain described by `domain-min` and `domain-max` into a a target range between `range-min` and `range-max`. The range values must be numerical. Domain boundaries as well as range boundaries are expected to be ordered correctly. The actual mapping is defined in `scale-fn`
(scale-domain-max Scale)
Lens for the domain-max
field (maximum domain value) from a Scale
record. See active-viz.scale.types/make-scale
.
Lens for the `domain-max` field (maximum domain value) from a [[Scale]] record. See [[active-viz.scale.types/make-scale]].
(scale-domain-min Scale)
Lens for the domain-min
field (minimum domain value) from a Scale
record. See active-viz.scale.types/make-scale
.
Lens for the `domain-min` field (minimum domain value) from a [[Scale]] record. See [[active-viz.scale.types/make-scale]].
(scale-params Scale)
Lens for the params
field (mapping params from domain to range, defining the type of scale) from a Scale
record. See active-viz.scale.types/make-scale
.
Lens for the `params` field (mapping params from domain to range, defining the type of scale) from a [[Scale]] record. See [[active-viz.scale.types/make-scale]].
(scale-range-max Scale)
Lens for the range-max
field (maximum target range value. Expected to be numerical.) from a Scale
record. See active-viz.scale.types/make-scale
.
Lens for the `range-max` field (maximum target range value. Expected to be numerical.) from a [[Scale]] record. See [[active-viz.scale.types/make-scale]].
(scale-range-min Scale)
Lens for the range-min
field (minimum target range value. Expected to be numerical.) from a Scale
record. See active-viz.scale.types/make-scale
.
Lens for the `range-min` field (minimum target range value. Expected to be numerical.) from a [[Scale]] record. See [[active-viz.scale.types/make-scale]].
(scale-succ Scale)
Lens for the succ
field (successor of the scale, when combined) from a Scale
record. See active-viz.scale.types/make-scale
.
Lens for the `succ` field (successor of the scale, when combined) from a [[Scale]] record. See [[active-viz.scale.types/make-scale]].
(scale? thing)
Is object a Scale
record? See active-viz.scale.types/make-scale
.
Is object a `Scale` record? See [[active-viz.scale.types/make-scale]].
(call-inverse this scale param)
(call this scale param)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close