From 972770972103ec914b992b7cae8745a211634836 Mon Sep 17 00:00:00 2001 From: Richard Iannone Date: Wed, 10 Jan 2024 17:06:43 -0500 Subject: [PATCH] Standardize values in `palette` to hex color values --- great_tables/_formats.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/great_tables/_formats.py b/great_tables/_formats.py index efee91f4f..4ebfc1557 100644 --- a/great_tables/_formats.py +++ b/great_tables/_formats.py @@ -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