Liking cljdoc? Tell your friends :D

wadogo.scale


->mapclj

(->map scale)

Convert scale type to a map

Convert scale type to a map
sourceraw docstring

dataclj

(data scale)
(data scale key)

Get all attributes assigned to a scale.

Get all attributes assigned to a scale.
sourceraw docstring

defcustomcljmacro

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

domainclj

(domain scale)

Return domain of the scale

Return domain of the scale
sourceraw docstring

extentclj

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

formatclj

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

formatterclj

(formatter scale)
(formatter scale vs)

Return formatter assigned to a scale.

Return formatter assigned to a scale.
sourceraw docstring

forwardclj

(forward scale v)

Apply scale

Apply scale
sourceraw docstring

inverseclj

(inverse scale v)

Apply scale inverse

Apply scale inverse
sourceraw docstring

kindclj

(kind scale)

Retrun kind of the scale

Retrun kind of the scale
sourceraw docstring

mappingclj

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

rangeclj

(range scale)

Return range of the scale

Return range of the scale
sourceraw docstring

scaleclj

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

scale-kindsclj

List of all possible scales

List of all possible scales
sourceraw docstring

sizeclj

(size scale)
(size scale range-or-domain)

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

ticksclj

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

update-domainclj

(update-domain scale f)

Modify a domain by a function.

Modify a domain by a function.
sourceraw docstring

update-rangeclj

(update-range scale f)

Modify a range by a function.

Modify a range by a function.
sourceraw docstring

with-dataclj

(with-data scale data)
(with-data scale k v & kvs)

Assign additional data to a scale.

Assign additional data to a scale.
sourceraw docstring

with-domainclj

(with-domain scale domain)

Modify a domain.

Modify a domain.
sourceraw docstring

with-formatterclj

(with-formatter scale fmt)

Assign custom formatter.

Assign custom formatter.
sourceraw docstring

with-kindclj

(with-kind scale kind)

Modify kind of the scale.

Modify kind of the scale.
sourceraw docstring

with-rangeclj

(with-range scale range)

Modify a range.

Modify a range.
sourceraw docstring

with-ticksclj

(with-ticks scale ticks)

Assign ticks or set nuumber of the ticks.

Assign ticks or set nuumber of the ticks.
sourceraw docstring

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

× close