Liking cljdoc? Tell your friends :D

scicloj.kindly.v4.kind

Kinds for visualization

Kinds for visualization
raw docstring

codeclj/s

(code)
(code value)
(code value options)

display-as: a piece syntax highlighted Clojure code example:

(+ 1 2)
display-as: a piece syntax highlighted Clojure code
example: 
```clj
(+ 1 2)
```
raw docstring

cytoscapeclj/s

(cytoscape)
(cytoscape value)
(cytoscape value options)

display-as: a graph example:

{:nodes #{1 4 3 2 5}, :edges #{[4 3] [4 2] [1 2] [3 5]}}

docs: https://js.cytoscape.org/#notation/elements-json json-schema: https://raw.githubusercontent.com/AZaitzeff/cytoscape_js_schema/main/cytoscape_schema.json

display-as: a graph
example: 
```clj
{:nodes #{1 4 3 2 5}, :edges #{[4 3] [4 2] [1 2] [3 5]}}
```

docs: https://js.cytoscape.org/#notation/elements-json
json-schema: https://raw.githubusercontent.com/AZaitzeff/cytoscape_js_schema/main/cytoscape_schema.json
raw docstring

datasetclj/s

(dataset)
(dataset value)
(dataset value options)

display-as: a table example:

(->> (System/getProperties) (map (fn [[k v]] {:k k, :v (apply str (take 40 (str v)))})) (tech.v3.dataset/->>dataset {:dataset-name "My Truncated System Properties"}))

docs: https://github.com/techascent/tech.ml.dataset

display-as: a table
example: 
```clj
(->> (System/getProperties) (map (fn [[k v]] {:k k, :v (apply str (take 40 (str v)))})) (tech.v3.dataset/->>dataset {:dataset-name "My Truncated System Properties"}))
```

docs: https://github.com/techascent/tech.ml.dataset
raw docstring

echartsclj/s

(echarts)
(echarts value)
(echarts value options)

display-as: a chart example:

[["a" "b" "c" "d"] [1 2 3 4]]

docs: https://echarts.apache.org/en/option.html

display-as: a chart
example: 
```clj
[["a" "b" "c" "d"] [1 2 3 4]]
```

docs: https://echarts.apache.org/en/option.html
raw docstring

ednclj/s

(edn)
(edn value)
(edn value options)

display-as: a piece syntax highlighted EDN structure example:

{:x [1 2 3]}
display-as: a piece syntax highlighted EDN structure
example: 
```clj
{:x [1 2 3]}
```
raw docstring

emmy-viewersclj/s

(emmy-viewers)
(emmy-viewers value)
(emmy-viewers value options)

display-as: A reagent component corresponding to emmy-viewers

display-as: A reagent component corresponding to emmy-viewers
raw docstring

fnclj/s

(fn)
(fn value)
(fn value options)

display-as: the evaluation of the given function and arguments examples:

;; vector form
(kind/fn [+ 2 3]) ; => 5
(kind/fn [(fn [s] (kind/md s)) 
**hi**: ]) ; => bold hi
;; map form
(kind/fn {:kindly/f (fn [{:keys [x y]}] (+ x y)) :x 1 :y 2}) ; => 3
;; arbitrary value + custom view fn
(kind/fn ["**hi**"] {:kindly/f (fn [[txt]] (kind/md txt))) ; => bold hi
display-as: the evaluation of the given function and arguments
examples: 
  ```clj
  ;; vector form
  (kind/fn [+ 2 3]) ; => 5
  (kind/fn [(fn [s] (kind/md s)) 
**hi**: ]) ; => bold hi
  ;; map form
  (kind/fn {:kindly/f (fn [{:keys [x y]}] (+ x y)) :x 1 :y 2}) ; => 3
  ;; arbitrary value + custom view fn
  (kind/fn ["**hi**"] {:kindly/f (fn [[txt]] (kind/md txt))) ; => bold hi
  ```
  
raw docstring

fragmentclj/s

(fragment)
(fragment value)
(fragment value options)

display-as: one toplevel context with a sequential value considered as many toplevel contexts of various kinds example:

[["**hello**"] [:p [:b "hello"]]]
display-as: one toplevel context with a sequential value considered as many toplevel contexts of various kinds
example: 
```clj
[["**hello**"] [:p [:b "hello"]]]
```
raw docstring

hiccupclj/s

(hiccup)
(hiccup value)
(hiccup value options)

display-as: HTML example:

[:div [:h3 "Hello " [:em "World"]]]
display-as: HTML
example: 
```clj
[:div [:h3 "Hello " [:em "World"]]]
```
raw docstring

hiddenclj/s

(hidden)
(hidden value)
(hidden value options)

display-as: do not display example:

["SECRET"]
display-as: do not display
example: 
```clj
["SECRET"]
```
raw docstring

highchartsclj/s

(highcharts)
(highcharts value)
(highcharts value options)

display-as: a chart example:

{:title {:text "Line chart"}, :subtitle {:text "By Job Category"}, :yAxis {:title {:text "Number of Employees"}}, :series [{:name "Installation & Developers", :data [43934 48656 65165 81827 112143 142383 171533 165174 155157 161454 154610]} {:name "Manufacturing", :data [24916 37941 29742 29851 32490 30282 38121 36885 33726 34243 31050]} {:name "Sales & Distribution", :data [11744 30000 16005 19771 20185 24377 32147 30912 29243 29213 25663]} {:name "Operations & Maintenance", :data [nil nil nil nil nil nil nil nil 11164 11218 10077]} {:name "Other", :data [21908 5548 8105 11248 8989 11816 18274 17300 13053 11906 10073]}], :xAxis {:accessibility {:rangeDescription "Range: 2010 to 2020"}}, :legend {:layout "vertical", :align "right", :verticalAlign "middle"}, :plotOptions {:series {:label {:connectorAllowed false}, :pointStart 2010}}, :responsive {:rules [{:condition {:maxWidth 500}, :chartOptions {:legend {:layout "horizontal", :align "center", :verticalAlign "bottom"}}}]}}

docs: https://www.highcharts.com/docs/index json-schema:

display-as: a chart
example: 
```clj
{:title {:text "Line chart"}, :subtitle {:text "By Job Category"}, :yAxis {:title {:text "Number of Employees"}}, :series [{:name "Installation & Developers", :data [43934 48656 65165 81827 112143 142383 171533 165174 155157 161454 154610]} {:name "Manufacturing", :data [24916 37941 29742 29851 32490 30282 38121 36885 33726 34243 31050]} {:name "Sales & Distribution", :data [11744 30000 16005 19771 20185 24377 32147 30912 29243 29213 25663]} {:name "Operations & Maintenance", :data [nil nil nil nil nil nil nil nil 11164 11218 10077]} {:name "Other", :data [21908 5548 8105 11248 8989 11816 18274 17300 13053 11906 10073]}], :xAxis {:accessibility {:rangeDescription "Range: 2010 to 2020"}}, :legend {:layout "vertical", :align "right", :verticalAlign "middle"}, :plotOptions {:series {:label {:connectorAllowed false}, :pointStart 2010}}, :responsive {:rules [{:condition {:maxWidth 500}, :chartOptions {:legend {:layout "horizontal", :align "center", :verticalAlign "bottom"}}}]}}
```

docs: https://www.highcharts.com/docs/index
json-schema: 
raw docstring

htmlclj/s

(html)
(html value)
(html value options)

display-as: HTML example:

<div><h3>Hello ><em>World</em></h3><div>
display-as: HTML
example: 
```clj
<div><h3>Hello ><em>World</em></h3><div>
```
raw docstring

htmlwidgets-ggplotlyclj/s

(htmlwidgets-ggplotly)
(htmlwidgets-ggplotly value)
(htmlwidgets-ggplotly value options)

display-as: a plot rendered by the JS client side of Plotly R, specifically for a ggplotly plot docs: https://plotly.com/ggplot2/

display-as: a plot rendered by the JS client side of Plotly R, specifically for a ggplotly plot
docs: https://plotly.com/ggplot2/
raw docstring

htmlwidgets-plotlyclj/s

(htmlwidgets-plotly)
(htmlwidgets-plotly value)
(htmlwidgets-plotly value options)

display-as: a plot rendered by the JS client side of Plotly R docs: https://plotly.com/r/

display-as: a plot rendered by the JS client side of Plotly R
docs: https://plotly.com/r/
raw docstring

imageclj/s

(image)
(image value)
(image value options)

display-as: an image example:

At the moment, java BufferedImage objects are supported.
display-as: an image
example: 
```clj
At the moment, java BufferedImage objects are supported.
```
raw docstring

mapclj/s

(map)
(map value)
(map value options)

display-as: associated values example:

{:key1 "value1", :key2 "value2"}
display-as: associated values
example: 
```clj
{:key1 "value1", :key2 "value2"}
```
raw docstring

mdclj/s

(md)
(md value)
(md value options)

display-as: a Markdown string example:

## Hello *World*
display-as: a Markdown string
example: 
```clj
## Hello *World*
```
raw docstring

observableclj/s

(observable)
(observable value)
(observable value options)

display-as: Observable visualizations docs: https://observablehq.com/

display-as: Observable visualizations
docs: https://observablehq.com/
raw docstring

plotlyclj/s

(plotly)
(plotly value)
(plotly value options)

display-as: a plot example:

[{:x [1 2 3 4 5], :y [1 2 4 8 16]}]

docs: https://plotly.com/javascript/getting-started/ json-schema: https://plotly.com/chart-studio-help/json-chart-schema/

display-as: a plot
example: 
```clj
[{:x [1 2 3 4 5], :y [1 2 4 8 16]}]
```

docs: https://plotly.com/javascript/getting-started/
json-schema: https://plotly.com/chart-studio-help/json-chart-schema/
raw docstring

portalclj/s

(portal)
(portal value)
(portal value options)

display-as: portal example:

{:key1 "value1", :key2 [:div [:h3 "Hello " [:em "World"]]]}
display-as: portal
example: 
```clj
{:key1 "value1", :key2 [:div [:h3 "Hello " [:em "World"]]]}
```
raw docstring

pprintclj/s

(pprint)
(pprint value)
(pprint value options)

display-as: a formatted string example:

{:key1 "value1", :key2 "value2"}
display-as: a formatted string
example: 
```clj
{:key1 "value1", :key2 "value2"}
```
raw docstring

reagentclj/s

(reagent)
(reagent value)
(reagent value options)

display-as: A reagent component inside HTML example:

[(fn [] [:button {:on-click (fn [ev] (js/alert "You pressed it"))} "Press me"])]
display-as: A reagent component inside HTML
example: 
```clj
[(fn [] [:button {:on-click (fn [ev] (js/alert "You pressed it"))} "Press me"])]
```
raw docstring

scittleclj/s

(scittle)
(scittle value)
(scittle value options)

display-as: Code to go into a <script type="application/x-scittle"> example:

(println "hello world")
display-as: Code to go into a <script type="application/x-scittle">
example: 
```clj
(println "hello world")
```
raw docstring

seqclj/s

(seq)
(seq value)
(seq value options)

display-as: a sequence example:

(range 5)
display-as: a sequence
example: 
```clj
(range 5)
```
raw docstring

setclj/s

(set)
(set value)
(set value options)

display-as: a bag example:

(set (range 5))
display-as: a bag
example: 
```clj
(set (range 5))
```
raw docstring

smile-modelclj/s

(smile-model)
(smile-model value)
(smile-model value options)

display-as: the str value should be displayesd as code docs: https://haifengl.github.io/

display-as: the `str` value should be displayesd as code
docs: https://haifengl.github.io/
raw docstring

tableclj/s

(table)
(table value)
(table value options)

display-as: a table examples:

[{:col1 1, :col2 2} {:col1 3, :col2 4}]
{:col1 [1 3], :col2 [2 4]}
{:column-names [:col1 :col2], :row-vectors [[1 2] [3 4]]}
display-as: a table
examples: 
```clj
[{:col1 1, :col2 2} {:col1 3, :col2 4}]
{:col1 [1 3], :col2 [2 4]}
{:column-names [:col1 :col2], :row-vectors [[1 2] [3 4]]}
```
raw docstring

testclj/s

(test)
(test value)
(test value options)

display-as: success or failure example:

(deftest unity-test (is (= 1 1)))
display-as: success or failure
example: 
```clj
(deftest unity-test (is (= 1 1)))
```
raw docstring

test-lastclj/s

(test-last)
(test-last value)
(test-last value options)

display-as: invisible (both code and value), but generates a test example:

[> 9]
display-as: invisible (both code and value), but generates a test
example: 
```clj
[> 9]
```
raw docstring

texclj/s

(tex)
(tex value)
(tex value options)

display-as: a TeX formula example:

x^2
display-as: a TeX formula
example: 
```clj
x^2
```
raw docstring

varclj/s

(var)
(var value)
(var value options)

display-as: the name of a var example:

(def testvar 100)
display-as: the name of a var
example: 
```clj
(def testvar 100)
```
raw docstring

vectorclj/s

(vector)
(vector value)
(vector value options)

display-as: a sequence example:

(vec (range 5))
display-as: a sequence
example: 
```clj
(vec (range 5))
```
raw docstring

vegaclj/s

(vega)
(vega value)
(vega value options)

display-as: a chart example:

{:description "A basic bar chart example, with value labels shown upon pointer hover.", :axes [{:orient "bottom", :scale "xscale"} {:orient "left", :scale "yscale"}], :width 400, :scales [{:name "xscale", :type "band", :domain {:data "table", :field "category"}, :range "width", :padding 0.05, :round true} {:name "yscale", :domain {:data "table", :field "amount"}, :nice true, :range "height"}], :padding 5, :marks [{:type "rect", :from {:data "table"}, :encode {:enter {:x {:scale "xscale", :field "category"}, :width {:scale "xscale", :band 1}, :y {:scale "yscale", :field "amount"}, :y2 {:scale "yscale", :value 0}}, :update {:fill {:value "steelblue"}}, :hover {:fill {:value "red"}}}} {:type "text", :encode {:enter {:align {:value "center"}, :baseline {:value "bottom"}, :fill {:value "#333"}}, :update {:x {:scale "xscale", :signal "tooltip.category", :band 0.5}, :y {:scale "yscale", :signal "tooltip.amount", :offset -2}, :text {:signal "tooltip.amount"}, :fillOpacity [{:test "datum === tooltip", :value 0} {:value 1}]}}}], :signals [{:name "tooltip", :value {}, :on [{:events "rect:pointerover", :update "datum"} {:events "rect:pointerout", :update "{}"}]}], :height 200, :data [{:name "table", :values [{:category "A", :amount 28} {:category "B", :amount 55} {:category "C", :amount 43} {:category "D", :amount 91} {:category "E", :amount 81} {:category "F", :amount 53} {:category "G", :amount 19} {:category "H", :amount 87}]}]}

docs: https://vega.github.io/vega/docs/ json-schema: https://vega.github.io/schema/vega/v5.json

display-as: a chart
example: 
```clj
{:description "A basic bar chart example, with value labels shown upon pointer hover.", :axes [{:orient "bottom", :scale "xscale"} {:orient "left", :scale "yscale"}], :width 400, :scales [{:name "xscale", :type "band", :domain {:data "table", :field "category"}, :range "width", :padding 0.05, :round true} {:name "yscale", :domain {:data "table", :field "amount"}, :nice true, :range "height"}], :padding 5, :marks [{:type "rect", :from {:data "table"}, :encode {:enter {:x {:scale "xscale", :field "category"}, :width {:scale "xscale", :band 1}, :y {:scale "yscale", :field "amount"}, :y2 {:scale "yscale", :value 0}}, :update {:fill {:value "steelblue"}}, :hover {:fill {:value "red"}}}} {:type "text", :encode {:enter {:align {:value "center"}, :baseline {:value "bottom"}, :fill {:value "#333"}}, :update {:x {:scale "xscale", :signal "tooltip.category", :band 0.5}, :y {:scale "yscale", :signal "tooltip.amount", :offset -2}, :text {:signal "tooltip.amount"}, :fillOpacity [{:test "datum === tooltip", :value 0} {:value 1}]}}}], :signals [{:name "tooltip", :value {}, :on [{:events "rect:pointerover", :update "datum"} {:events "rect:pointerout", :update "{}"}]}], :height 200, :data [{:name "table", :values [{:category "A", :amount 28} {:category "B", :amount 55} {:category "C", :amount 43} {:category "D", :amount 91} {:category "E", :amount 81} {:category "F", :amount 53} {:category "G", :amount 19} {:category "H", :amount 87}]}]}
```

docs: https://vega.github.io/vega/docs/
json-schema: https://vega.github.io/schema/vega/v5.json
raw docstring

vega-liteclj/s

(vega-lite)
(vega-lite value)
(vega-lite value options)

display-as: VegaLite chart example:

{:description "A simple bar chart with embedded data.", :data {:values [{"a" "A", "b" 28} {"a" "B", "b" 55} {"a" "C", "b" 43} {"a" "D", "b" 91} {"a" "E", "b" 81} {"a" "F", "b" 53} {"a" "G", "b" 19} {"a" "H", "b" 87} {"a" "I", "b" 52}]}, :mark "bar", :encoding {"x" {"field" "a", "type" "nominal", "axis" {"labelAngle" 0}}, "y" {"field" "b", "type" "quantitative"}}}

docs: https://vega.github.io/vega-lite/docs/ json-schema: https://vega.github.io/schema/vega-lite/v5.json

display-as: VegaLite chart
example: 
```clj
{:description "A simple bar chart with embedded data.", :data {:values [{"a" "A", "b" 28} {"a" "B", "b" 55} {"a" "C", "b" 43} {"a" "D", "b" 91} {"a" "E", "b" 81} {"a" "F", "b" 53} {"a" "G", "b" 19} {"a" "H", "b" 87} {"a" "I", "b" 52}]}, :mark "bar", :encoding {"x" {"field" "a", "type" "nominal", "axis" {"labelAngle" 0}}, "y" {"field" "b", "type" "quantitative"}}}
```

docs: https://vega.github.io/vega-lite/docs/
json-schema: https://vega.github.io/schema/vega-lite/v5.json
raw docstring

videoclj/s

(video)
(video value)
(video value options)

display-as: an embedded video examples:

{:youtube-id "MXHI4mgfVk8"}
"file:///path/to/vid.mp4"
display-as: an embedded video
examples: 
```clj
{:youtube-id "MXHI4mgfVk8"}
"file:///path/to/vid.mp4"
```
raw docstring

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

× close