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

Apply colorscale to subtotals and totalRow in DataTable #1963

Open
mjbloch opened this issue May 2, 2024 · 2 comments
Open

Apply colorscale to subtotals and totalRow in DataTable #1963

mjbloch opened this issue May 2, 2024 · 2 comments

Comments

@mjbloch
Copy link

mjbloch commented May 2, 2024

Feature Description

Would like column contentType=colorscale to apply to subtotals and totalRow rows in Data Tables - ideally this could be a configuration setting in the DataTable to apply or not. contentType=delta already applies to subtotals and totals this, but contentType=colorscale does not.

Goal of Feature

More consistent formatting across the entire data table. Would also make "rolled-up" data tables easier to analyze with conditional formatting when collapsed.

Current Solution / Workarounds

N/A

Alternatives

Could use contentType=delta as an alternative.

@mjbloch mjbloch changed the title Apply colorScale to subtotals and totalRow in DataTable Apply colorscale to subtotals and totalRow in DataTable May 2, 2024
@hughess
Copy link
Member

hughess commented May 9, 2024

@mjbloch the reason we left the formatting out for those rows was so it doesn’t skew the scale range - I was imagining the total rows would all show in dark colours and the individual rows all in light.

We could add it as an optional prop though as you suggested - just wanted to confirm it would give you what you’re looking for

@mjbloch
Copy link
Author

mjbloch commented May 9, 2024

@hughess - makes total sense. The example I was working with was all +/- around zero so I didn't even consider the potential color scale skew from the total rows. A prop to toggle on or off would definitely be ideal. Thanks!

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