ui-vega

所属分类:collect
开发工具:Clojure
文件大小:0KB
下载次数:0
上传日期:2022-05-23 03:31:17
上 传 者sh-1993
说明:  no intro
(ui-vega,,)

文件列表:
cljfmt.edn (136, 2023-08-05)
cljkondo.edn (3201, 2023-08-05)
demo/ (0, 2023-08-05)
demo/goldly-plot.edn (290, 2023-08-05)
demo/plot_demo/ (0, 2023-08-05)
demo/plot_demo/page/ (0, 2023-08-05)
demo/plot_demo/page/listplot.cljs (1975, 2023-08-05)
deps.edn (3430, 2023-08-05)
dev/ (0, 2023-08-05)
dev/perf/ (0, 2023-08-05)
dev/perf/core.clj (1098, 2023-08-05)
dev/perf/stacked-bar.vg.json (2046, 2023-08-05)
release.edn (106, 2023-08-05)
resources/ (0, 2023-08-05)
resources/ext/ (0, 2023-08-05)
resources/ext/ui-vega.edn (1116, 2023-08-05)
resources/public/ (0, 2023-08-05)
resources/public/data/ (0, 2023-08-05)
resources/public/data/cars.json (100492, 2023-08-05)
resources/public/data/chicago-crimes-2018.arrow (16362682, 2023-08-05)
resources/public/data/flare.json (20638, 2023-08-05)
resources/public/data/iris.json (15802, 2023-08-05)
resources/public/data/miserables.json (12372, 2023-08-05)
resources/public/data/normal-2d.json (38400, 2023-08-05)
resources/public/data/penguins.json (67119, 2023-08-05)
resources/public/data/population.json (27665, 2023-08-05)
resources/public/data/sp500.csv (2305, 2023-08-05)
resources/public/data/stocks.csv (12245, 2023-08-05)
resources/public/data/swings.json (477, 2023-08-05)
resources/public/data/unemployment.tsv (34739, 2023-08-05)
resources/public/data/us-10m.json (642361, 2023-08-05)
resources/public/vega/ (0, 2023-08-05)
resources/public/vega/bar-chart.vg.json (2312, 2023-08-05)
resources/public/vega/box-plot.vg.json (3453, 2023-08-05)
... ...

# ui-vega [![GitHub Actions status |pink-gorilla/ui-vega](https://github.com/pink-gorilla/ui-vega/workflows/CI/badge.svg)](https://github.com/pink-gorilla/ui-vega/actions?workflow=CI)[![Codecov Project](https://codecov.io/gh/pink-gorilla/ui-vega/branch/master/graph/badge.svg)](https://codecov.io/gh/pink-gorilla/ui-vega)[![Clojars Project](https://img.shields.io/clojars/v/org.pinkgorilla/ui-vega.svg)](https://clojars.org/org.pinkgorilla/ui-vega) ## ui.vega - ui-vega defines a reagent wrapper to render vega-plots - 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. ## ui.vega.plot - is a simple data-driven plotting dsl. - provides a few functions to quickly generate vega specs, and therefore vega plots. ## Demos (port : 8080) Run `clj -X:docs` to see ui-vega goldly snippets. ## development clj -X:docs:build :profile "npm-install" clj -X:docs:build :profile "npm-compile2" clj -X:docs ## 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 ``` clj -M:perf ``` ## Unit test ``` clj -M:test ./scripts/test-cljs.sh ``` **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 With UNPKG you can see output of npm builds. Useful for debugging. https://unpkg.com/browse/vega-embed@6.19.1/build/vega-embed.js vega-embed iterator.js bug: - use vega-embed 6.18 - include an iterator.js file with the contents module.exports = function() {};. https://shadow-cljs.github.io/docs/UsersGuide.html#_patching_libraries might be helpful.

近期下载者

相关文件


收藏者