Liking cljdoc? Tell your friends :D

app.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

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-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

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-bool-attrcljs

(parse-bool-attr s)

Returns true if attr is present (non-nil) and not literally "false".

Returns true if attr is present (non-nil) and not literally "false".
sourceraw docstring

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

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