color issue for chart bars or chart lines #29942
Replies: 6 comments 5 replies
-
To resolve the issue of the system not allowing you to save 2-bit languages like Hindi, Chinese, Japanese, etc., when setting colors for chart bars or chart lines in a JSON properties file at the dashboard level, ensure that the JSON properties file correctly handles Unicode characters. In JSON, represent Unicode characters using the Here is an example of how you can set colors for chart bars or chart lines with labels in 2-bit languages: {
"label_colors": {
"हिंदी": "#FF5733", // Hindi
"中文": "#33FF57", // Chinese
"日本語": "#3357FF" // Japanese
}
} Ensure that your JSON properties file is saved with UTF-8 encoding to properly handle these characters. Additionally, make sure the {
"timed_refresh_immune_slices": [],
"expanded_slices": {},
"refresh_frequency": 0,
"default_filters": "{}",
"color_scheme": "supersetColors",
"label_colors": {
"हिंदी": "#FF5733", // Hindi
"中文": "#33FF57", // Chinese
"日本語": "#3357FF" // Japanese
},
"filter_scopes": {
"358": {
"Country_Name": {"scope": ["ROOT_ID"], "immune": []},
"Product_Category": {"scope": ["ROOT_ID"], "immune": []},
"Clinical Stage": {"scope": ["ROOT_ID"], "immune": []}
}
}
} This should help in resolving the issue with saving and displaying 2-bit languages in the dashboard [1][2]. |
Beta Was this translation helpful? Give feedback.
-
Hi, |
Beta Was this translation helpful? Give feedback.
-
Hi, |
Beta Was this translation helpful? Give feedback.
-
Hi, |
Beta Was this translation helpful? Give feedback.
-
Hi Can we change json metadata in dashboard API, when modified its not getting save instead its giving json is invalid |
Beta Was this translation helpful? Give feedback.
-
How to change label colors from dashboard data API ? |
Beta Was this translation helpful? Give feedback.
-
We have this setting in JSON properties file at dashboard level and for some reasons it is not allowing us to save 2bit languages like Hindi, Chinese, Japanese etc.
Beta Was this translation helpful? Give feedback.
All reactions