squalou opened a new issue #11826:
URL: https://github.com/apache/incubator-superset/issues/11826


   See #2524
   
   In a dashbord properties, one can set "label_colors", so that all charts on 
the dashboard will share the same colors for identical data.
   
   It's been broken in 0.37.2 and 0.38.0. 
   
   Last time seen working was 0.36.0
   
   ### Expected results
   
   all charts share the predefined colors of each category, set using 
"label_colors"
   
   ### Actual results
   
   charts original colors arekept, or the one chosen in dashboard is used, but 
label_colors is ignored
   
   #### Screenshots
   
   When it works :
   
   
![image](https://user-images.githubusercontent.com/4623644/100337275-76a60d00-2fd7-11eb-978a-8e15510c0716.png)
   
   
   With newer version :
   
   
![image](https://user-images.githubusercontent.com/4623644/100337499-be2c9900-2fd7-11eb-9055-56fbce12be5a.png)
   
   
   
   
   #### How to reproduce the bug
   
   1. create two bar charts showing categories "category1, category2, ... for 
instance". Define a different custom palette for each
   2. add them on a dashboard
   3. go to edit / edit dashboard properties
   4. in dashboard properties set for instance 
   
   ```
   "label_colors": {
       "category1": "rgb(248, 166,28)",
       "category2": "black",
       "category3": "rgb(227, 59, 5)",
       "category4": "rgb(245, 104, 7) ",
       "category5": "rgb(230, 28, 96)",
       "category6": "rgb(0, 228, 201) "
     },
   ```
   5. look at the dashboard : it does never use these "label_colors"
   
   NOTE : in dashboard settings, selecting a palette does overwrite charts 
palettes, removing a palette tehre leaves the charts one,
   but "label_colors" is never used.
   
   ### Environment
   
   - superset version: `superset version`
   
   ```bash
   -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
   Superset 0.38.0
   -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
   ```
   
   - python version: `python --version`
   
   ```python
   - Python 3.6.7
   ```
   
   node.js version: `node -v`
   
   ```js
   v12.16.3
   ```
   ### 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
   
   Add any other context about the problem here.
   


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to