Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can you set the colors in a chart with Kibana 4?

Tags:

kibana-4

I have a stacked bar chart in Kibana 4, and I would like the error bar to be red, the warning bar to be orange and the info bar to be green. This used to be simple to accomplish in Kibana 3, but I cannot figure out how to do it in Kibana 4. Has anyone been able to do this?

like image 427
Jason Martens Avatar asked Apr 30 '15 16:04

Jason Martens


People also ask

How do I change colors in Kibana?

To do this, we can click on the legend. This will open the color palette so that we can choose a color: In the previous screen, we want to change the green color, so from the color palette, we can click the yellow color to change the green bar to a yellow bar: This way, we can change the colors of visualizations.

How do I change the color of a pie chart in Kibana?

The color of the pie chart can be changed by clicking directly on the color of each slice on the right side of the chart. Then, to get information, follow the steps below. Open Options tab and: Check the Show Label box from the Label settings.

How do I make a graph in Kibana?

To create a new Kibana visualization, select Visualize in the menu on the left, click the + icon and then select the visualization you want to create. You are then presented with a choice — either create the new visualization on one of the indices you have in Elasticsearch or a saved search.


2 Answers

In kibana4 (at least for v.4.1.0) this is not yet possible. The colors are chosen at random from a defined palette in the code.

Many people are asking for this, and I think it's planned for version 4.3.
You can follow it here: https://github.com/elastic/kibana/issues/1362

like image 114
gillyb Avatar answered Oct 24 '22 21:10

gillyb


It will be in Kibana 4.4 (already available if you checkout branch 4.4 of kibana instead of downloading the official release). Of course a development branch is not meant to be stable, so use at your own risks.

like image 33
Frédéric Esnault Avatar answered Oct 24 '22 22:10

Frédéric Esnault