What formatting opts are available for hv.Table?

Are there formatting options available for hv.Table and if so where are they documented? I’ve tired using the options listed by hv.help(hv.Table) but things like

hv.Table(ds.select(chains=(14, 21))).opts(opts.Table(fontsize=20))

have no effect.

2 Likes

Hi @orome

I tried searching the docs and and the web without luck. I can confirm that the options fontsize is documented but does not have any effect.

I believe there is a way by providing a custom html template with css. But that solution might not be what you are looking for.

You could report it as a bug on github as the documentation contains the fontsize but it does not have any effect. Issues · holoviz/holoviews (github.com)

@Marc Yeah seems like a bug. I’ve tried a bunch of listed options and none do anything.

2 Likes

Ugh, not even the backend_opts escape hatch works with Tables! :frowning:

HoloViews tables are a bit hard to work with. Are you able to use Panel? If so there’s pn.widgets.Tabulator and pn.pane.Perspective

Thank you for the tip. I’m still experimenting, but it seems workable.

It’s somewhat confusing because I have multiple holoviews that share a legend for control; so to keep that legend working, the holoviews need to be laid out together before going into a panel, which is then laid out with the Tabulator. Still, once you know the pitfalls, it works.