(add-tooltip
vl-spec
{:keys [x-fld-name x-fld-type x-fld-title]
:or {x-fld-name "x" x-fld-type "temporal" x-fld-title "Time"}}
{:keys [y-fld-name y-fld-type y-fld-title]
:or {y-fld-name "y" y-fld-type "quantitative" y-fld-title "Count"}}
{:keys [stack-fld-name stack-fld-type stack-fld-title]
:or
{stack-fld-name "label" stack-fld-type "nominal" stack-fld-title "Labels"}
:as stack-info})
(increase-hover-area spec)
Adds a selection in the spec
to increase the hover area of a point on the chart
So that tooltips show even if the cursor is not exactly on the point
Adds a selection in the `spec` to increase the hover area of a point on the chart So that tooltips show even if the cursor is not exactly on the point
(select-on-click spec
{:keys [select-fld select-type select-bind select-name]
:or {select-fld "label"
select-type "multi"
select-bind "legend"
select-name :A}})
Selects data only belonging to a particular label which was clicked and fades out others from the legend bar
Selects data only belonging to a particular label which was clicked and fades out others from the legend bar
(zoom-on-scroll spec)
Zooms in/out the graph
Zooms in/out the graph
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close