(data scale)
(data scale key)
Get all attributes assigned to a scale.
Get all attributes assigned to a scale.
(defcustom scale-name forward inverse)
Create custom continuous numerical scale with given forward
and inverse
functions.
Create custom continuous numerical scale with given `forward` and `inverse` functions.
(extent xs)
Return span of the sequence (helper function). Returns a pair of min
and max
value.
Return span of the sequence (helper function). Returns a pair of `min` and `max` value.
(format scale)
(format scale vs)
Format list of scale values (taken from ticks or set by user). Returns sequence of strings.
Format list of scale values (taken from ticks or set by user). Returns sequence of strings.
(formatter scale)
(formatter scale vs)
Return formatter assigned to a scale.
Return formatter assigned to a scale.
The information about what is the type of the domain and range for every scale.
The information about what is the type of the domain and range for every scale.
(scale scale-kind)
(scale scale-kind attributes)
Create a scale
List of all scale kinds is strored in scale-kinds
var.
Possible attributes are (all scales have reasonable defaults, defined under default-params
in every scale namespace):
:domain
- domain of the scale:range
- range of the scale:ticks
- number of ticks or list of ticks:formatter
- formatting functions (convertion to string)Create a scale List of all scale kinds is strored in `scale-kinds` var. Possible attributes are (all scales have reasonable defaults, defined under `default-params` in every scale namespace): * `:domain` - domain of the scale * `:range` - range of the scale * `:ticks` - number of ticks or list of ticks * `:formatter` - formatting functions (convertion to string)
(scale? scale)
Checks if given object is a Scale object
Checks if given object is a Scale object
(size scale)
(size scale range-or-domain)
Return span size of the domain or range (default).
Returns:
discrete
casecontinuous
caseReturn span size of the domain or range (default). Returns: * count of the elements for `discrete` case * interval span for `continuous` case * duration for datetime case
(ticks scale)
(ticks scale proposed-ticks)
Return ticks which is list of chosen values of the scale, usually nicely distributed through the domain or range.
Number of ticks can be changed by providing ticks
(optional argument).
Return ticks which is list of chosen values of the scale, usually nicely distributed through the domain or range. Number of ticks can be changed by providing `ticks` (optional argument).
(update-domain scale f)
Modify a domain by a function.
Modify a domain by a function.
(update-range scale f)
Modify a range by a function.
Modify a range by a function.
(with-data scale data)
(with-data scale k v & kvs)
Assign additional data to a scale.
Assign additional data to a scale.
(with-formatter scale fmt)
Assign custom formatter.
Assign custom formatter.
(with-kind scale kind)
Modify kind of the scale.
Modify kind of the scale.
(with-ticks scale ticks)
Assign ticks or set nuumber of the ticks.
Assign ticks or set nuumber of the ticks.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close