Liking cljdoc? Tell your friends :D

org.clojars.punit-naik.draw


add-axesclj/s

(add-axes vl-spec
          {:keys [x-fld-name x-fld-type x-agg-op x-fld-opts y-fld-name
                  y-fld-type y-agg-op y-fld-opts]
           :or {x-fld-opts {} y-fld-opts {}}})

Adds axes to the plot in the Vega-lite spec

Adds axes to the plot in the Vega-lite spec
sourceraw docstring

add-dashesclj/s

(add-dashes spec fld-name)
(add-dashes spec fld-name fld-type)

Adds dashes to the stroke of a line chart

Adds dashes to the stroke of a line chart
sourceraw docstring

add-opacityclj/s

(add-opacity spec fld-name)
(add-opacity spec fld-name fld-type)

Adds opacity/transparency to the stroke of a line chart based on fld-name

Adds opacity/transparency to the stroke of a line chart based on `fld-name`
sourceraw docstring

add-rule-for-lineclj/s

(add-rule-for-line spec chart-type stack-fld-name chart-interpolate)

Adds a rule (vertical line) when hovered over any point, works even when not exactly hovered over a point Makes clicking on line charts easier

Adds a rule (vertical line) when hovered over any point, works even when not exactly hovered over a point
Makes clicking on line charts easier
sourceraw docstring

change-axis-colorclj/s

(change-axis-color spec color)
source

change-legend-colorclj/s

(change-legend-color spec color)
source

custom-stack-coloursclj/s

(custom-stack-colours vl-spec colours-map)

Adds custom colour to every label/stack field colours-map is a map with field values as keys and colours (hex strings) as values

Adds custom colour to every label/stack field
`colours-map` is a map with field values as keys and colours (hex strings) as values
sourceraw docstring

generate-colour-rangeclj/s

(generate-colour-range data range-mapping-fn)

Generates vega-lite spec for colour ranges for field values

Generates `vega-lite` spec for colour ranges for field values
sourceraw docstring

get-fld-infoclj/s

(get-fld-info spec fld)

Gets the info of the field on fld-Axis

Gets the info of the field on `fld`-Axis
sourceraw docstring

get-stack-fld-infoclj/s

(get-stack-fld-info spec)

Gets the info the the field using which the chart is being stacked (coloured)

Gets the info the the field using which the chart is being stacked (coloured)
sourceraw docstring

get-step-sizeclj/s

(get-step-size {:keys [width] :as spec})

Gets the step size for grouped bar charts based on data

Gets the step size for grouped bar charts based on data
sourceraw docstring

grouped-bar->lineclj/s

(grouped-bar->line spec)

Converts a spec with a grouped bar chart to a multi line series (stacked) chart

Converts a spec with a grouped bar chart to a multi line series (stacked) chart
sourceraw docstring

header-for-grouped-bar-chartclj/s

(header-for-grouped-bar-chart x-fld-info total-records bucket)
source

line->grouped-barclj/s

(line->grouped-bar spec bucket)

Converts a spec with a multi line series (stacked) chart to a grouped bar chart Calculates width of each group's bar based on the number of stacks (colours) and current width of the chart

Converts a spec with a multi line series (stacked) chart to a grouped bar chart
Calculates width of each group's bar based on the number of stacks (colours) and current width of the chart
sourceraw docstring

stackclj/s

(stack vl-spec
       {:keys [stack-fld stack-fld-type stack-fld-opts]
        :or {stack-fld-opts {}}})

Stacks charts based on a particular field on the aggregated field of the chart NOTE: Only to be used when there is an aggregated field in the chart in encoding and not in transform

Stacks charts based on a particular field on the aggregated field of the chart
NOTE: Only to be used when there is an aggregated field in the chart in `encoding` and not in `transform`
sourceraw docstring

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

× close