Liking cljdoc? Tell your friends :D

org.clojars.punit-naik.chart-actions


add-tooltipclj/s

(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})
source

increase-hover-areaclj/s

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

select-on-clickclj/s

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

zoom-on-scrollclj/s

(zoom-on-scroll spec)

Zooms in/out the graph

Zooms in/out the graph
sourceraw docstring

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

× close