This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-03-26
Channels
- # announcements (6)
- # babashka (29)
- # babashka-sci-dev (2)
- # beginners (129)
- # calva (9)
- # clara (16)
- # cljdoc (49)
- # clojure (125)
- # clojure-bay-area (3)
- # clojure-europe (55)
- # clojure-france (1)
- # clojuredesign-podcast (8)
- # clojurescript (85)
- # conjure (3)
- # core-logic (2)
- # cursive (1)
- # events (1)
- # honeysql (61)
- # jobs-discuss (23)
- # lsp (69)
- # malli (14)
- # nrepl (3)
- # off-topic (16)
- # portal (11)
- # re-frame (8)
- # releases (1)
- # ring (2)
- # shadow-cljs (12)
- # vim (42)
- # xtdb (18)
is there a particular way I need to format data for it to be viewable with the vega viewers?
The https://github.com/djblue/portal/blob/master/src/portal/ui/viewer/vega.cljs#L13-L17 is very minimal. However, if you want it to be the default you will need to set it via metadata {:portal.viewer/default :portal.viewer/vega}
The vega-lite https://github.com/djblue/portal/blob/master/src/portal/ui/viewer/vega_lite.cljs#L7-L14 is a little more involved, but still pretty minimal. And again, for setting the default viewer {:portal.viewer/default :portal.viewer/vega-lite}
There are also a few viewers that will translate common data patterns to vega/vega-lite for you
grrr, my issue from 6 months ago is still open https://github.com/vega/vega/issues/3295
I never used the vega viewers, but I would start with https://github.com/djblue/portal/blob/master/src/examples/data.cljc#L98-L104