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

Row colors in table #26

Open
GaelVaroquaux opened this issue Mar 16, 2020 · 4 comments
Open

Row colors in table #26

GaelVaroquaux opened this issue Mar 16, 2020 · 4 comments
Labels
dash Requires Dash skills

Comments

@GaelVaroquaux
Copy link
Contributor

GaelVaroquaux commented Mar 16, 2020

We should change the color for the selected countries:
https://plot.ly/python/table/#row-color-based-on-variable
https://dash.plot.ly/datatable

@GaelVaroquaux GaelVaroquaux added the dash Requires Dash skills label Mar 16, 2020
@mrastgoo
Copy link

Hi, I would be happy to work on this

@emmanuelle
Copy link
Contributor

Hi @mrastgoo great to see you here! It's awesome if you want to take a look but I gave it a try earlier on and I could not find an easy way to do this, basically there is not styling attribute for selected rows in a Dash Datatable. Other issues such as #48 or #46 might be easier to get started.

@emmanuelle
Copy link
Contributor

A possible strategy would be to have a hidden column (with conditional styling as described in https://github.com/covid19-dash/covid-dashboard/blob/master/make_figures.py#L49 in the last post), which value would be updated when the row is selected thanks to a callback (which would have to be clientside, ie in Javascript since we make a dump of the app into static html pages), and then to have conditional styling for the value of the column. Haven't tried it though, and it's a bit convoluted, but it's worth trying I guess :-).

@mrastgoo
Copy link

@mrastgoo great to see you here! It's awesome if you want to take a look but I gave it a try earlier on and I could not find an easy way to do this, basically there is not styling attribute for selected rows in a Dash Datatable. Other issues such as #48 or #46 might be easier to get started.

Thanks Emma, I will work on the new issues #48 then

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dash Requires Dash skills
Projects
None yet
Development

No branches or pull requests

3 participants