org.clojars.punit-naik.canvas

add-desc

(add-desc vl-spec desc)
Adds a description to the Vega-lite spec

add-mark

(add-mark vl-spec mtype)
Adds a mark (plot) type to the Vega-lite spec

add-title

(add-title vl-spec title)
Adds a title to the Vega-lite spec

set-backgroud

(set-backgroud vl-spec value)
Sets the colour of the chart background

set-config

(set-config vl-spec value)

set-height

(set-height vl-spec value)
Sets the height of the Vega-lite component

set-padding

(set-padding vl-spec value)
Sets the padding of the Vega-lite component
`value` is a map of keys [:top :bottom :left :right]

set-width

(set-width vl-spec value)
Sets the width of the Vega-lite component