Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynamic table column widths #233

Open
kcpevey opened this issue Sep 21, 2018 · 3 comments
Open

Dynamic table column widths #233

kcpevey opened this issue Sep 21, 2018 · 3 comments
Milestone

Comments

@kcpevey
Copy link
Collaborator

kcpevey commented Sep 21, 2018

How is the width of the columns in the dynamic tables in the annotators chosen?

I have this:
table2

Some columns need to be wider because of contents (like datetime), some columns need to be wider because of labels (like Max_Wind_Speed), some columns could be smaller (like radius).

Related but different: It seems like the total width of the total table is not related to cell size, drawing size, or the bokeh region (where the tools are). So it seems like it could have utilized some of this space better?

@philippjfr
Copy link
Contributor

Control over column width is absolutely something we could expose, in the matplotlib TablePlot we also attempt to automatically scale the column width relative to the maximum of characters in each column, which might provide better defaults.

It seems like the total width of the total table is not related to cell size, drawing size, or the bokeh region (where the tools are). So it seems like it could have utilized some of this space better?

This is to do with the way widget sizing works in bokeh, according to the core bokeh developers this is a very hard problem because the widths and heights are determined by CSS, which means they cannot be computed ahead of time. Hopefully the ongoing layout rewrite will address this, if not there's probably not much we can do.

@kcpevey
Copy link
Collaborator Author

kcpevey commented Sep 24, 2018

Control over column width is absolutely something we could expose, in the matplotlib TablePlot we also attempt to automatically scale the column width relative to the maximum of characters in each column, which might provide better defaults.

I'd be happy with automatic scaling to column width for now and exposing more control being left as an option for the future.

according to the core bokeh developers this is a very hard problem because the widths and heights are determined by CSS

I'm ok with the current state and like you mentioned, we can work with layouts as that is being developed.

@kcpevey
Copy link
Collaborator Author

kcpevey commented Oct 19, 2020

This could be a request on bokeh

@kcpevey kcpevey added this to the Wishlist milestone Oct 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants