You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2021/12/18 13:12:03 UTC

[GitHub] [superset] hbruch opened a new issue #17812: EXTRA_SEQUENTIAL_COLOR_SCHEMES result in error in color dropdown

hbruch opened a new issue #17812:
URL: https://github.com/apache/superset/issues/17812


   Defining EXTRA_SEQUENTIAL_COLOR_SCHEMES results in broken color dropdown. 
   
   #### How to reproduce the bug
   
   1. In superset_config.py, define EXTRA_SEQUENTIAL_COLOR_SCHEMES, e.g. like
   ```python
     EXTRA_SEQUENTIAL_COLOR_SCHEMES =[
       {
            "id": 'mySequentialScheme',
            "description": 'myDescription',
            "label": 'myLabel',
            "isDiverging": False,
            "colors":
             ['#dfdeeb', '#cac8dd', '#b5b2d0', '#a09dc2', 
              '#8d8ab6', '#7c79ab',
              '#6b69a0', '#5a5995', '#464889', '#2e367b']
       }
   ]
   ```
   2. start superset
   3. create a chart e.g. DeckGL polygon chart
   3. In chart editor, Switch to Customize tab
   4. See error in Color dropdown
   
   ### Expected results
   The defined extra colors should appear as a dropdown item.
   
   ### Actual results
   An unexpected error occures.
   
   #### Screenshots
   
   <img width="320" alt="grafik" src="https://user-images.githubusercontent.com/2187389/146642134-6c210da8-9983-4413-8f53-be672391d7f0.png">
   
   
   ### Environment
   n.a.
   ### Checklist
   
   Make sure to follow these steps before submitting your issue - thank you!
   
   - [x] I have checked the superset logs for python stacktraces and included it here as text if there are any.
   - [x] I have reproduced the issue with at least the latest released version of superset.
   - [x] I have checked the issue tracker for the same issue and I haven't found one similar.
   
   ### Additional context
   Seems to have been introduced by [refactorings of setupColors.ts](https://github.com/apache/superset/commit/540277ebb108ccaf7937a173f6cfde90f2e72813#diff-6b6935236687720b747cb115601e9189dfba26121fd6ad2e822a02da25207dfbR68-L63)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [superset] villebro closed issue #17812: EXTRA_SEQUENTIAL_COLOR_SCHEMES result in error in color dropdown

Posted by GitBox <gi...@apache.org>.
villebro closed issue #17812:
URL: https://github.com/apache/superset/issues/17812


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org