Skip to content

Table: Applying colors to diagonal cells #3472

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

Closed
AbdealiLoKo opened this issue Jan 24, 2019 · 3 comments
Closed

Table: Applying colors to diagonal cells #3472

AbdealiLoKo opened this issue Jan 24, 2019 · 3 comments

Comments

@AbdealiLoKo
Copy link

We were using the Table trace type and we wanted to try giving the diagonal cells a color so it was easy to distinguish them and see data on either sides. (I think that is a common usecase to show matrices and so on)

I looked at the documentation and saw that the fill attribute in cells but it only supports an array i.e. a specific color can be applied to a column.
Was wondering how I could achieve this using plotly tables ? Cell level color fills

@etpinard
Copy link
Contributor

Thanks for writing in!

This should be possible using cells.fill.color.

See https://codepen.io/etpinard/pen/bzVENX?editors=1010, is that what you're looking for?

@AbdealiLoKo
Copy link
Author

@etpinard Thanks a lot. That is what I need.

I did not realize I could provide a 2D array in that and did not try :/
Should I close the issue or keep it for documentation improvement maybe ?

Currently it says:

Sets the cell fill color. It accepts either a specific color or an array of colors.

@etpinard
Copy link
Contributor

Should I close the issue or keep it for documentation improvement maybe ?

That will be done in #3481

Thanks again for the report!

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