Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Lens] Add some more documentation for dynamic coloring #101369

Merged
merged 14 commits into from
Jun 17, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions docs/user/dashboard/lens.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -313,3 +313,22 @@ Pagination in a data table is unsupported in *Lens*. However, the <<types-of-vis
===== Is it possible to have more than one y-axis scale in visualizations?

*Lens* lets you pick, for each Y dimension, up to two distinct axis: *left* and *right*. Each axis can have a different scale.

[float]
[[why-is-my-value-with-the-right-color-using-value-based-coloring]]
===== Why is my value with the incorrect color when using value-based coloring?

There could be various reasons for a specific value in the table to have a different color than expected.

Here's a short list of few different aspects to check:
* Make sure the value falls within the desired color stop value defined in the panel. Color stop values are "inclusive".

* Make sure you have the right value precision setup: value formatters could round the numeric values up or down.

* Make sure the right color continuity option is selected: if the number is below the first color stop value, a continuity of type `Below` or `Above and below range` is required.

* The default values set by the Value type are based on the current data range displayed on the data table.

** If a custom `Number` configuration is used, check that the color stop values are covering the current data range.

** If a `Percent` configuration is used, and the data range changes, the colors displayed are affected.
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,24 @@ export function CustomizablePalette({
/>
</EuiFormRow>
<EuiFormRow
label={i18n.translate('xpack.lens.table.dynamicColoring.continuity.label', {
defaultMessage: 'Color continuity',
})}
label={
<>
{i18n.translate('xpack.lens.table.dynamicColoring.continuity.label', {
defaultMessage: 'Color continuity',
})}{' '}
<EuiIconTip
content={i18n.translate(
'xpack.lens.table.dynamicColoring.customPalette.continuityHelp',
{
defaultMessage:
'Specify how colors appear before the first color stop, and after the last color stop.',
}
)}
position="top"
size="s"
/>
</>
}
display="rowCompressed"
>
<EuiSuperSelect
Expand Down