Kibana: Can kibana 5.X can customize the visualization color

Created on 3 Feb 2017  路  11Comments  路  Source: elastic/kibana

as now the bar color is random in kibana 5.x, can i choose the Specific color to show the bar.
for example, i choose the specific 5 colors to show the data

Kibana-Design enhancement

Most helpful comment

It does seem that hex colours falling outside of the clickable palette can be assigned directly by editing uiState object in the saved visualization.

screen shot 2017-07-01 at 17 28 56

However, a big limitation here is that colours are assigned to the specific terms that appear on the legend. That's fine if the items in the legend are always the same (e.g., the colours are assigned to different metrics, and the metrics are always the same regardless of time range). It's a problem if the items in the legend can change depending on time time range or other query/filter (e.g., pie chart slices are determined by a Terms Aggregation, and the terms vary depending on time range or filter).

I get that it sometimes makes sense for particular terms to always be assigned a particular colour, but it would be nice to be able specify in uiState a palette from which colours can be assigned. For example, if I would like to visualize occurrences of alert conditions in a pie chart, I might want all of the slices to be some shade of red or orange; whereas another pie chart on the same dashboard showing various normal conditions might use a more neutral palette of blues or greens.

All 11 comments

@kevin-tang-rs if you click on the item in the legend, you can change the color for a specific 'series'

image

Is this what you're looking for?

@kobelb actually, my mean is to choose several speicfic colors to show the data, for example, i choose the 'red, green, blue, yellow' color to show the data, exclude other colors

@kevin-tang-rs so you'd like to specify a few colors that are always used when drawing the visualizations, as opposed to our standard "palette"?

@kobelb yes, our Product Manager hope to do as you mention

@kevin-tang-rs gotcha, thanks for the clarification. We don't currently have this functionality, so I've labeled this issue as an enhancement.

@kobelb thank you very much

Maybe related to this, if not I can move it to another issue:

Is it possible to specify custom colors? Colors which are not in the palette? I have a red/green deficiency, and I sometimes have trouble finding enough colours in the given palette which I can visually distinguish very well. Making it possible to add hex-codes would give me more flexibility.

+1 I also need the possibility to add color that it is not in the palette

It does seem that hex colours falling outside of the clickable palette can be assigned directly by editing uiState object in the saved visualization.

screen shot 2017-07-01 at 17 28 56

However, a big limitation here is that colours are assigned to the specific terms that appear on the legend. That's fine if the items in the legend are always the same (e.g., the colours are assigned to different metrics, and the metrics are always the same regardless of time range). It's a problem if the items in the legend can change depending on time time range or other query/filter (e.g., pie chart slices are determined by a Terms Aggregation, and the terms vary depending on time range or filter).

I get that it sometimes makes sense for particular terms to always be assigned a particular colour, but it would be nice to be able specify in uiState a palette from which colours can be assigned. For example, if I would like to visualize occurrences of alert conditions in a pie chart, I might want all of the slices to be some shade of red or orange; whereas another pie chart on the same dashboard showing various normal conditions might use a more neutral palette of blues or greens.

Has there been any news on this issue? Can we pick colors for a visualization and have it stay that way?

This issue is replaced by #17764 which focuses more on the palette aspect than specifying custom colors in general.

Was this page helpful?
0 / 5 - 0 ratings