opus-42 opened a new issue #13486:
URL: https://github.com/apache/superset/issues/13486
**Is your feature request related to a problem? Please describe.**
Configuring dashboard with custom colors is quite painful and requires
manually updates. Moreover, these labels usually refers to known context and
may repeat over different board for visual consistency.
Current way of creating label_colors is updating the dashboard JSON Metadata
:
```JSON
{
"label_colors": {
"Girls": "#FF69B4",
"Boys": "#ADD8E6"
}
}
```
**Describe the solution you'd like**
A solution would be define general **color mappings** which would basically
be a list of key-value items and could be add through UI to the dashboards:
* One menu for creating color mappings
* One bouton in dashboard config to apply the dashboard
Exemple of a color mappings:
```JSON
{
"US": "#000000",
"FR": "#000000",
....
}
```
In this proposal the dashboard wouldn't be directly linked to the color
mappings.
Color mappings would simply updated dashboard metadata once, that is to say
future changes in the color mappings won't apply to the dashboard.
**Describe alternatives you've considered**
An alternative that is already used in my company is to use the dashboard
REST API and define colors mapping and update via Custom CLI / Python Scripts.
This alternative would requires to Open-Source our CLI and Python Superset
Client.
There would be a gain to directly integrate directly this in Superset.
I am ready to develop that feature if there is a boarder community need for
it.
----------------------------------------------------------------
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]