Change visualization:colorMapping


I want to change the charts color palette in the "visualization:colorMapping", but didn't find any examples. Someone can help me on this? Giving some example.


Luís Carvalho

The next version of Kibana that will be released allows you to select colors on the actual charts. Until then, you can modify the visualization:colorMapping setting as follows:

Say that I have a chart, and inside the legend there are three values: "GET", "POST", and "PUT", each with their associated color.

Inside the visualization:colorMapping advanced config setting, I could customize the color for each of these by changing it to {"GET": "green", "POST": "blue", "PUT": "green"}. (You can use hexadecimal values instead as well.)

Does this help?


Yes, it helped.