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 2018/07/18 14:19:34 UTC

[GitHub] wuchunfu opened a new issue #5420: Superset how to support custom add Color Scheme?

wuchunfu opened a new issue #5420: Superset how to support custom add Color Scheme?
URL: https://github.com/apache/incubator-superset/issues/5420
 
 
   Well, I am having a problem now, I want to add a `Color Scheme` to `Chart Options`, but I have tried a lot of methods that can't solve this problem, including modifying `${SUPERSET_HOME}/static/assets/src/modules/colors.js`, I tried to add the following code to it
   
   ```
   export const newColorScheme = [
     '#a4f2b8',
     '#abc8fa',
   ];
   
   export const ALL_COLOR_SCHEMES = {
     bnbColors,
     d3Category10,
     d3Category20,
     d3Category20b,
     d3Category20c,
     googleCategory10c,
     googleCategory20c,
     lyftColors,
     newColorScheme,
   };
   ```
   
   This is a screenshot of the problem I encountered:
   
   ![color scheme](https://user-images.githubusercontent.com/29206593/42887393-762f7cae-8ad8-11e8-8314-bc15111eef4a.png)
   
   Superset version
   incubator-superset-0.26.3
   
   The result I want is that I can choose my custom `Color` in `Color Scheme`.
   
   If you want to reproduce, you can click `Charts` in the menu bar, then select a `chart`, click `Style`, you can see `Color Scheme`, you can choose a color scheme, as shown below:
   
   ![color scheme](https://user-images.githubusercontent.com/29206593/42887393-762f7cae-8ad8-11e8-8314-bc15111eef4a.png)
   
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

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