portal 2023-12-12

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

Do you mean for the Vega-Lite viewer?

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

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.

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

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

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?

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