Skip to content

Commit

Permalink
[Docs] Add section for assigning colors to terms (elastic#199241)
Browse files Browse the repository at this point in the history
## Summary

Added a section with instructions for assigning colors to terms in a
table. The technical preview warning will be removed in GA.

Rel: elastic#189895
Closes: [elastic#559](elastic/platform-docs-team#559)

---------

Co-authored-by: florent-leborgne <[email protected]>
  • Loading branch information
2 people authored and tkajtoch committed Nov 12, 2024
1 parent 90fcd3a commit 59c5583
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion docs/user/dashboard/lens.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -96,13 +96,37 @@ All columns that belong to the same layer pane group are sorted in the table.

* *Text alignment* &mdash; Aligns the values in the cell to the *Left*, *Center*, or *Right*.

* *Color by value* &mdash; Applies color to the cell or text values. To change the color, click the *Edit colors* icon.

* *Hide column* &mdash; Hides the column for the field.

* *Directly filter on click* &mdash; Turns column values into clickable links that allow you to filter or drill down into the data.

* *Summary row* &mdash; Adds a row that displays the summary value. When specified, allows you to enter a *Summary label*.

* *Color by value* &mdash; Applies color to the cell or text values. To change the color, click *Edit*.
[float]
[[assign-colors-to-terms]]
===== Assign colors to terms

preview::[]

For term-based metrics, assign a color to each term with color mapping.

. Create a custom table.

. In the layer pane, select a *Rows* or *Metrics* field.

. In the *Color by value* option, select *Cell* or *Text*.

. Click the *Edit colors* icon.

. Toggle the button to use the Color Mapping feature.

. Select a color palette and mode.

. Click *Add assignment* to assign a color to a specific term, or click *Add all unassigned terms* to assign colors to all terms. Assigning colors to dates is unsupported.

. Configure color assignments. You can also select whether unassigned terms should be mapped to the selected color palette or a single color.

[float]
[[drag-and-drop-keyboard-navigation]]
Expand Down

0 comments on commit 59c5583

Please sign in to comment.