I got table in Superset 4.0.0 wit cell bars:
I want set different colors for bars for every column.
I’m trying to use this code in json metadata:
# default code
{
"chart_configuration": {
"937": {"id": 937, "crossFilters": {"scope": "global", "chartsInScope": []}}
},
"global_chart_configuration": {
"scope": {"rootPath": ["ROOT_ID"], "excluded": []},
"chartsInScope": [937]
},
"color_scheme": "bnbColors",
"refresh_frequency": 0,
"expanded_slices": {},
"label_colors": {},
"timed_refresh_immune_slices": [],
"cross_filters_enabled": true,
"default_filters": "{}",
# my code
"cell_styling": {
"table": {
"columns": {
"plan": {"backgroundColor": "#ff0000"},
"fact": {"backgroundColor": "#00ff00"}
}
}
}
}
Then I apply changed metadata I got no errors.
Then I trying to save changes, I got error:
Sorry, there was an error saving this dashboard: [object Object]
How to solve this problem?