Reputation: 11
i am trying to find a way to change the label colors for particular chart in apache superset. I am unable to get it working as mentioned in the documentation by adding label_colors to JSON Metadata of dashboard.
Upvotes: 1
Views: 13406
Reputation: 71
I don't think you can change color labels for an individual chart anymore, because the value has to be consistent for the rest of the dashboard, i.e. you will have to specify it on dashboard level.
To do that, have your dashboard on edit mode, press the 3 dots and choose Edit Properties. Look in the advanced option which contains JSON metadata, and add your labels as shown by Sree here.
"label_colors":{
" Girls":"#FF69B4",
"Boys":"#ADD8E6"
}
Checkout Preset's tutorial on that subject, second half shows how it's done now
Upvotes: 1
Reputation: 440
You can add like this with your column names in Edit Chart Metadata ---> Parameters
"label_colors":{
"Girls":"#FF69B4",
"Boys":"#ADD8E6"
}
Hope it works.
Upvotes: 2