You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by vi...@apache.org on 2024/10/01 17:50:47 UTC

(superset) branch master updated: docs(dashboard): add docs for named and index colors (#30445)

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

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


The following commit(s) were added to refs/heads/master by this push:
     new d1d9011f4d docs(dashboard): add docs for named and index colors (#30445)
d1d9011f4d is described below

commit d1d9011f4d9d7e4da5ca68e8b7edca7fd637139f
Author: Ville Brofeldt <33...@users.noreply.github.com>
AuthorDate: Tue Oct 1 10:50:41 2024 -0700

    docs(dashboard): add docs for named and index colors (#30445)
---
 docs/docs/faq.mdx | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/docs/docs/faq.mdx b/docs/docs/faq.mdx
index 2fe0df7238..e7b166bb21 100644
--- a/docs/docs/faq.mdx
+++ b/docs/docs/faq.mdx
@@ -174,13 +174,16 @@ You can take a look at this Flask-AppBuilder
 ## Is there a way to force the dashboard to use specific colors?
 
 It is possible on a per-dashboard basis by providing a mapping of labels to colors in the JSON
-Metadata attribute using the `label_colors` key.
+Metadata attribute using the `label_colors` key. You can use either the full hex color, a named color,
+like `red`, `coral` or `lightblue`, or the index in the current color palette (0 for first color, 1 for
+second etc). Example:
 
 ```json
 {
     "label_colors": {
-        "Girls": "#FF69B4",
-        "Boys": "#ADD8E6"
+        "foo": "#FF69B4",
+        "bar": "lightblue",
+        "baz": 0
     }
 }
 ```