'I have a problem with kibana pie chart's colors palette
I couldn't find how to change the colors in pie charts and treemaps in my kibana's dashboard. Does anyone know how to change the default colors of a pie chart in kibana 7.10.2 dashboards please ?
Solution 1:[1]
Pie chart color can be picked in edit mode of concrete visualization, after clicking on legend. To show legend click bottom left icon.

Im unaware of default scheme cross dashboard, however maybe if you export dashboard into json, then json can be edited and reimported again, instead of using UI mentioned above. Color is stored in property uiStateJSON like this:
"uiStateJSON":"{\"vis\":{\"colors\":{\"Count\":\"#629E51\",\"passed\":\"#508642\",\"failed\":\"#BF1B00\",\"pending\":\"#E5AC0E\"}}}"
In complex scenarios Vega visualization can be used, where common scheme can be defined with scale property.
"encoding": {
"theta": {"field": "result_count", "type": "quantitative"},
"color": {
"field": "result_count",
"type": "nominal",
"scale": { "scheme": "reds" }
}
}
or defined range scale property: "scale": { "range": ["#FF5050","#50FF50"] }
or merged color dimension with visualized data like it is done here
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Jan Tancibok |
