This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-12-12
Channels
- # adventofcode (42)
- # aleph (10)
- # announcements (1)
- # asami (138)
- # babashka (7)
- # beginners (7)
- # biff (13)
- # cider (7)
- # clj-kondo (15)
- # clojure (53)
- # clojure-austin (11)
- # clojure-belgium (2)
- # clojure-europe (23)
- # clojure-nl (1)
- # clojure-norway (55)
- # clojure-sweden (5)
- # clojure-uk (4)
- # cryogen (7)
- # cursive (63)
- # datomic (5)
- # eastwood (6)
- # emacs (31)
- # fulcro (7)
- # hyperfiddle (9)
- # introduce-yourself (3)
- # java (11)
- # lsp (10)
- # malli (14)
- # membrane (35)
- # off-topic (13)
- # portal (12)
- # prelude (1)
- # releases (2)
- # ring-swagger (27)
- # shadow-cljs (8)
- # timbre (25)
Hi, where can I find documentation on how to customize the plots? Like: different plot types, log scales, etc?
There are multiple plotting tools integrated? the only one I could find in the https://github.com/djblue/portal/tree/master/examples/plotly-viewer is plotly (which it seems is using vega internally) but it doesn’t respond to any of the plotly or vega options
I see what you mean, there also this: https://cljdoc.org/d/djblue/portal/0.50.0/api/portal.viewer#vega-lite
The plotly example is an example of brining in an npm dependency to build your own viewers. vega/vega-lite are built-in and can be used without worrying about extensibility.
I usually start from https://vega.github.io/vega-lite/examples/
Thank you.
The ability to create custom viewers for data is amazing. I've been using it to have a dashboard of sorts for a long running process. I had a question about specifying table columns in the viewer cljs. I have this:
[:h1 "Latest entries"]
[ins/inspector
{:portal.viewer/default :portal.viewer/table
:portal.viewer/table {:columns [:file :parse-time]}}
entries]
The :portal.viewer/default
key works and the data is displayed in a table, but all the columns of the maps in entries are shown, not just the two selected. Is there a way to specify the columns in a custom viewer?