Skip to content

Consistent, global color configuration for query and field values #6480

@tbragin

Description

@tbragin

Two main options exist for configuring color of a series today (in Kibana 4.4):

(1) Global setting in Advanced Settings which associates a particular string in the legend value (e.g. "error") with a color, introduced in Kibana 4.2.

screen shot 2016-03-08 at 8 57 53 pm

screen shot 2016-03-08 at 8 57 46 pm

(2) Per-chart color picker that works by clicking on a legend, introduced in Kibana 4.4. This configures a color for a legend value of a specific visualization.

screen shot 2016-03-08 at 8 35 22 pm

However, there are a couple of notable limitations (see below).

Limitation 1. Legends are used inconsistently as far as association with colors go. For instance, pie chart Terms breakdown shows values in the legend, but not the bar chart. You can get the values to show up in the legend by doing a second Terms breakdown, but that's sort of a hack.

screen shot 2016-03-08 at 8 53 09 pm

screen shot 2016-03-08 at 8 41 16 pm

screen shot 2016-03-08 at 8 41 02 pm

Limitation 2. In some cases, e.g. with Filters Agg that includes a star query, that trick doesn't work.

screen shot 2016-03-08 at 8 51 14 pm

screen shot 2016-03-08 at 8 43 25 pm

Proposal is to provide a consistent, non-hacky way (via Advanced Settings?) to associate a value either in the legend or in the axis label with a color. Ideally, there'd be a way to refer to an exact value or just a substring.

Keywords: color directory, color map

Metadata

Metadata

Assignees

No one assigned

    Labels

    Feature:VisualizationsGeneric visualization features (in case no more specific feature label is available)Team:VisualizationsTeam label for Lens, elastic-charts, Graph, legacy editors (TSVB, Visualize, Timelion) t//enhancementNew value added to drive a business result

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions