Fork me on GitHub
#portal
<
2023-12-12
>
bruno.bonacci12:12:58

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

zane15:12:57

Do you mean for the Vega-Lite viewer?

bruno.bonacci16:12:02

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

djblue17:12:03

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.

djblue17:12:02

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

djblue17:12:47

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

nate17:12:38

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?

djblue19:12:11

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

nate20:12:23

Thank you.