Liking cljdoc? Tell your friends :D

baredom.components.x-chart.model


allowed-cursorscljs

source

allowed-typescljs

source

attr-axescljs

source

attr-cursorcljs

source

attr-datacljs

source

attr-disabledcljs

source

attr-gridcljs

source

attr-heightcljs

source

attr-loadingcljs

source

attr-paddingcljs

source

attr-selectedcljs

source

attr-tooltipcljs

source

attr-typecljs

source

attr-x-formatcljs

source

attr-y-formatcljs

source

compute-series-ptscljs

(compute-series-pts s series-idx kind x-dom {:keys [x0 y0 x1 y1]} y-domain)

Annotate every point in series s with its rendered pixel coords (:px, :py), the series index (:si), and its position in the series (:i). kind is "category" or "numeric"; bounds is the plot rect map (:x0 :y0 :x1 :y1).

Annotate every point in series `s` with its rendered pixel coords
(`:px`, `:py`), the series index (`:si`), and its position in the
series (`:i`). `kind` is "category" or "numeric"; `bounds` is
the plot rect map (`:x0 :y0 :x1 :y1`).
sourceraw docstring

default-heightcljs

source

default-paddingcljs

source

domain-xcljs

(domain-x series)

Returns [min-x max-x] for numeric x, or category count for category x.

Returns [min-x max-x] for numeric x, or category count for category x.
sourceraw docstring

domain-ycljs

(domain-y series)

Returns [min-y max-y] across all series data points, or [0 1] if empty.

Returns [min-y max-y] across all series data points, or [0 1] if empty.
sourceraw docstring

dot-rcljs

source

event-hovercljs

source

event-schemacljs

source

event-selectcljs

source

find-pts-at-xcljs

(find-pts-at-x all-pts mx)

For cursor='x': find one point per series closest to mx. all-pts is a flat seq of points with :id and :px keys.

For cursor='x': find one point per series closest to mx.
all-pts is a flat seq of points with :id and :px keys.
sourceraw docstring

format-valuecljs

(format-value v fmt-str)

Format a numeric value v using fmt-str spec. fmt-str: nil | "int" | "pct" | "abbr" | "fixed:N" | "raw"

Format a numeric value v using fmt-str spec.
fmt-str: nil | "int" | "pct" | "abbr" | "fixed:N" | "raw"
sourceraw docstring

max-tooltip-rowscljs

source

method-apicljs

source

nice-stepcljs

(nice-step span n)

Compute a "nice" step size for approximately n ticks over span.

Compute a "nice" step size for approximately n ticks over span.
sourceraw docstring

normalizecljs

(normalize {:keys [type-raw data-raw height-raw padding-raw grid-present?
                   axes-raw tooltip-present? cursor-raw disabled-present?
                   loading-present? selected-raw x-format-raw y-format-raw]})
source

observed-attributescljs

source

parse-cursorcljs

(parse-cursor s)
source

parse-int-poscljs

(parse-int-pos s default-val)

Parse a positive integer string, returning default-val on failure.

Parse a positive integer string, returning default-val on failure.
sourceraw docstring

parse-selectedcljs

(parse-selected s)

Parse selected attr string "seriesId:index" into map, or nil.

Parse selected attr string "seriesId:index" into map, or nil.
sourceraw docstring

parse-series-datacljs

(parse-series-data json-str)

Parse JSON string into a vector of series maps. Returns [] on error.

Parse JSON string into a vector of series maps. Returns [] on error.
sourceraw docstring

parse-typecljs

(parse-type s)
source

property-apicljs

source

scale-x-categorycljs

(scale-x-category i n x0 x1)

Map a category index i of n evenly-spaced bins to a pixel x. When n <= 1 returns the rect midpoint.

Map a category index `i` of `n` evenly-spaced bins to a pixel x.
When n <= 1 returns the rect midpoint.
sourceraw docstring

scale-x-numericcljs

(scale-x-numeric x [mn mx] x0 x1)

Map a numeric x-value to a pixel x inside the plot rect [x0, x1].

Map a numeric x-value to a pixel x inside the plot rect [x0, x1].
sourceraw docstring

scale-ycljs

(scale-y y [mn mx] y0 y1)

Map a y-value to a pixel y inside the plot rect [y0, y1]. y0 is the top edge (low pixel), y1 the bottom edge (high pixel). Inverts the axis so larger values render higher on the screen. When the domain has zero span, returns the rect midpoint.

Map a y-value to a pixel y inside the plot rect [y0, y1].
y0 is the top edge (low pixel), y1 the bottom edge (high pixel).
Inverts the axis so larger values render higher on the screen.
When the domain has zero span, returns the rect midpoint.
sourceraw docstring

tag-namecljs

source

ticks-ycljs

(ticks-y mn mx n)

Returns a vector of ~n nice tick values between mn and mx.

Returns a vector of ~n nice tick values between mn and mx.
sourceraw docstring

tooltip-edge-padcljs

source

tooltip-offsetcljs

source

tooltip-positioncljs

(tooltip-position px py tw th W H edge-pad offset)

Compute tooltip position with edge-safe flip logic. px/py = cursor position; tw/th = tooltip size; W/H = container size. Returns {:left l :top t}.

Compute tooltip position with edge-safe flip logic.
px/py = cursor position; tw/th = tooltip size; W/H = container size.
Returns {:left l :top t}.
sourceraw docstring

x-kindcljs

(x-kind series)

Returns "category" when x values are strings, otherwise "numeric".

Returns "category" when x values are strings, otherwise "numeric".
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close