portal

2023-12-12T12:44:58.416139Z

Hi, where can I find documentation on how to customize the plots? Like: different plot types, log scales, etc?

zane 2023-12-12T15:39:57.773719Z

Do you mean for the Vega-Lite viewer?

2023-12-12T16:02:02.730039Z

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

2023-12-12T17:22:24.602369Z

I see what you mean, there also this: https://cljdoc.org/d/djblue/portal/0.50.0/api/portal.viewer#vega-lite

djblue 2023-12-12T17:24:03.953889Z

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.

djblue 2023-12-12T17:25:02.760929Z

if you do portal.api/docs you can view different examples of vega/vega-lite

djblue 2023-12-12T17:25:47.293229Z

But for all that vega/vega-lite can do, I would look through their docs

djblue 2023-12-12T17:26:10.860389Z

I usually start from https://vega.github.io/vega-lite/examples/

2023-12-12T17:36:28.463289Z

Thank you.

nate 2023-12-12T17:10:38.925169Z

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?

djblue 2023-12-12T19:46:11.610279Z

Feels like a bug, will look into it when I get some time 🤔

nate 2023-12-12T20:47:23.005119Z

Thank you.