Liking cljdoc? Tell your friends :D

Gorilla Plot GitHub Actions status |pink-gorilla/gorilla-plotCodecov ProjectClojars Project

GorillaPlot DSL

  • gorilla-plot is a simple data-driven plotting dsl.
  • vega is a browser based plot renderer, that uses declarative syntax to build plots
  • vega comes as vega spec and vega-lite spec. vega lite spec is compiled to vega-spec and is a more condensed specification with less features.
  • gorilla-ui defines a reagent wrapper to render vega-plots
  • gorilla-plots provides a few functions to quickly generate vega specs, and therefore vega plots.

Demos (port : 8000)

Run lein notebook to edit example notebooks.

Run lein goldly to see gorilla-plot goldly snippets. Navigate to snippets registry.

Implementation

  • Legacy gorilla-plot was originally written by Jony Hudson for Gorilla repl.
  • Gorilla-Plot Legacy uses vega-spec, updated to vega 5 spec.
  • multiplot uses vega-lite spec.

Performance test

lein perf

vega problems

If there are problems in using vega with errors to "buffer" then npm install shadow-cljs --save might fix it. thheller: both buffer and process are polyfills packages that shadow-cljs will provide ... the npm package is mostly the for CLI stuff but also brings in some extra npm packages the compiler is from the CLJ dependency you have in project.clj. the npm stuff never does any actual compilation, just runs the java process

you do not need to worry about process or buffer at all you can fix this easily by bumping :compiler-options {:output-feature-set :es6} or whatever language level is appropriate :es8 is good if you have bunch of async/await code in libs

Can you improve this documentation? These fine people already did:
awb99, Andreas Steffan & JonyEpsilon
Edit on GitHub

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

× close