You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by ru...@apache.org on 2022/06/09 22:19:08 UTC

[superset] branch color-experimentation-testbed updated (07b4a7159d -> c69648adbd)

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

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


    from 07b4a7159d fix(chart): chart gets cut off on the dashboard (#20315)
     new 34dff83b2c Preset color palette experimentation
     new c69648adbd Screwing with viz color palettes

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 superset/config.py | 97 +++++++++++++++++++++++++++++++++++++++---------------
 1 file changed, 70 insertions(+), 27 deletions(-)


[superset] 01/02: Preset color palette experimentation

Posted by ru...@apache.org.
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 34dff83b2cccd62c8d909bd2c843ffb6c2e35e4c
Author: Evan Rusackas <ev...@preset.io>
AuthorDate: Thu Jun 9 16:18:39 2022 -0600

    Preset color palette experimentation
---
 superset/config.py | 36 +++++++++++++++++++++---------------
 1 file changed, 21 insertions(+), 15 deletions(-)

diff --git a/superset/config.py b/superset/config.py
index 8a5ec248fb..695226a1d1 100644
--- a/superset/config.py
+++ b/superset/config.py
@@ -498,22 +498,28 @@ EXTRA_CATEGORICAL_COLOR_SCHEMES: List[Dict[str, Any]] = []
 
 # THEME_OVERRIDES is used for adding custom theme to superset
 # example code for "My theme" custom scheme
-# THEME_OVERRIDES = {
-#   "borderRadius": 4,
-#   "colors": {
-#     "primary": {
-#       "base": 'red',
-#     },
-#     "secondary": {
-#       "base": 'green',
-#     },
-#     "grayscale": {
-#       "base": 'orange',
-#     }
-#   }
-# }
+THEME_OVERRIDES = {
+  "colors": {
+    "primary": {
+      "base": '#2FC096',
+      "dark1": '#269A78',
+      "dark2": '#1C735A',
+      "light1": '#59CDAB',
+      "light2": '#82D9C0',
+      "light3": '#C1ECE0',
+      "light4": '#EAF9F5',
+      "light5": '#ff0000',
+    }
+    # "secondary": {
+    #   "base": 'green',
+    # },
+    # "grayscale": {
+    #   "base": 'orange',
+    # }
+  }
+}
 
-THEME_OVERRIDES: Dict[str, Any] = {}
+# THEME_OVERRIDES: Dict[str, Any] = {}
 
 # EXTRA_SEQUENTIAL_COLOR_SCHEMES is used for adding custom sequential color schemes
 # EXTRA_SEQUENTIAL_COLOR_SCHEMES =  [


[superset] 02/02: Screwing with viz color palettes

Posted by ru...@apache.org.
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 <ev...@preset.io>
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)