You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by ma...@apache.org on 2018/05/24 04:30:10 UTC

[incubator-superset] branch master updated: Fix time shift color assignements (#5065)

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

maximebeauchemin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git


The following commit(s) were added to refs/heads/master by this push:
     new 05061a7  Fix time shift color assignements (#5065)
05061a7 is described below

commit 05061a73ce1c5668f9042a4830401ff94b48b2e6
Author: Maxime Beauchemin <ma...@gmail.com>
AuthorDate: Wed May 23 21:30:03 2018 -0700

    Fix time shift color assignements (#5065)
    
    closes https://github.com/apache/incubator-superset/pull/4765
---
 superset/assets/src/modules/colors.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/superset/assets/src/modules/colors.js b/superset/assets/src/modules/colors.js
index c6ce01b..ac206b0 100644
--- a/superset/assets/src/modules/colors.js
+++ b/superset/assets/src/modules/colors.js
@@ -181,7 +181,7 @@ export const getColorFromScheme = (function () {
     const selectedScheme = scheme ? ALL_COLOR_SCHEMES[scheme] : ALL_COLOR_SCHEMES.bnbColors;
     let stringifyS = String(s).toLowerCase();
     // next line is for superset series that should have the same color
-    stringifyS = stringifyS.replace('---', '');
+    stringifyS = stringifyS.replace(' ---', '');
 
     if (forcedColor && !forcedColors[stringifyS]) {
       forcedColors[stringifyS] = forcedColor;

-- 
To stop receiving notification emails like this one, please contact
maximebeauchemin@apache.org.