Skip to content

Commit

Permalink
Standardize values in palette to hex color values
Browse files Browse the repository at this point in the history
  • Loading branch information
rich-iannone committed Jan 10, 2024
1 parent 0f1ed7b commit 9727709
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions great_tables/_formats.py
Original file line number Diff line number Diff line change
Expand Up @@ -2136,6 +2136,9 @@ def data_color(
if reverse:
palette = palette[::-1]

# Standardize values in `palette` to hexadecimal color values
palette = _html_color(colors=palette, alpha=alpha)

# Set a flag to indicate whether or not the domain should be calculated automatically
if domain is None:
autocalc_domain = True
Expand Down

0 comments on commit 9727709

Please sign in to comment.