This is an automated email from the ASF dual-hosted git repository.

rusackas pushed a commit to branch color-experimentation-testbed
in repository https://gitbox.apache.org/repos/asf/superset.git

commit c69648adbd2431f6c58a9e3c9a0ac6cd514d51dc
Author: Evan Rusackas <[email protected]>
AuthorDate: Thu Jun 9 16:18:59 2022 -0600

    Screwing with viz color palettes
---
 superset/config.py | 61 +++++++++++++++++++++++++++++++++++++++++++-----------
 1 file changed, 49 insertions(+), 12 deletions(-)

diff --git a/superset/config.py b/superset/config.py
index 695226a1d1..1a3fff0258 100644
--- a/superset/config.py
+++ b/superset/config.py
@@ -522,20 +522,57 @@ THEME_OVERRIDES = {
 # THEME_OVERRIDES: Dict[str, Any] = {}
 
 # EXTRA_SEQUENTIAL_COLOR_SCHEMES is used for adding custom sequential color 
schemes
-# EXTRA_SEQUENTIAL_COLOR_SCHEMES =  [
-#     {
-#         "id": 'warmToHot',
-#         "description": '',
-#         "isDiverging": True,
-#         "label": 'My custom warm to hot',
-#         "isDefault": True,
-#         "colors":
-#          ['#552288', '#5AAA46', '#CC7788', '#EEDD55', '#9977BB', '#BBAA44', 
'#DDCCDD',
-#          '#006699', '#009DD9', '#5AAA46', '#44AAAA', '#DDAA77', '#7799BB', 
'#88AA77']
-#     }]
+EXTRA_SEQUENTIAL_COLOR_SCHEMES =  [
+    {
+        "id": 'hotCold',
+        "description": '',
+        "isDiverging": True,
+        "label": 'Hot to Cold',
+        "isDefault": False,
+        "colors":
+         ['#ff0000', '#ffffff', '#00ccff']
+    },
+    {
+        "id": 'ukraine',
+        "description": '',
+        "isDiverging": True,
+        "label": 'Ukraine isDiverging',
+        "isDefault": True,
+        "colors":
+         ['#ffff00', '#00ccff']
+    },
+    {
+        "id": 'pinkIsDiverging',
+        "description": '',
+        "isDiverging": True,
+        "label": 'Magenta is Diverging',
+        "isDefault": False,
+        "colors":
+         ['#ff00ff']
+    },
+    {
+        "id": 'cyanIsNotDiverging',
+        "description": '',
+        "isDiverging": False,
+        "label": 'Cyan is Not Diverging',
+        "isDefault": False,
+        "colors":
+         ['#00ffff']
+    },
+    {
+        "id": 'hotMess',
+        "description": '',
+        "isDiverging": False,
+        "label": 'Hot Mess',
+        "isDefault": True,
+        "colors":
+         ['#ffff00', '#00ccff', '#ff0000', '#ff00ff', '#00ffff', '#ffffff']
+    }
+    
+    ]
 
 # This is merely a default
-EXTRA_SEQUENTIAL_COLOR_SCHEMES: List[Dict[str, Any]] = []
+# EXTRA_SEQUENTIAL_COLOR_SCHEMES: List[Dict[str, Any]] = []
 
 # ---------------------------------------------------
 # Thumbnail config (behind feature flag)

Reply via email to