Skip to content

Commit c500544

Browse files
[Docs] Missing Lens appearance options (#229450)
Equivalent of 9.1 changes made in elastic/docs-content#2210
1 parent 3ca5551 commit c500544

File tree

6 files changed

+101
-2
lines changed

6 files changed

+101
-2
lines changed
55.8 KB
Loading
58.3 KB
Loading
59.2 KB
Loading
58.9 KB
Loading
66.2 KB
Loading

docs/user/dashboard/lens.asciidoc

Lines changed: 101 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -478,20 +478,119 @@ In the legend, click the field, then choose one of the following options:
478478

479479
[float]
480480
[[configure-the-visualization-components]]
481-
==== Configure the visualization components
481+
==== Customize the visualization display
482482

483483
Each visualization type comes with a set of components that you access from the editor toolbar.
484484

485485
The following component menus are available:
486486

487-
* *Visual options* — Specifies how to display area, line, and bar chart options. For example, you can specify how to display the labels in bar charts.
487+
* *Appearance* — Specifies how to display area, line, and bar chart options. For example, you can specify how to display the labels in bar charts.
488488

489489
* *Labels* — Specifies how to display the labels for donut charts, pie charts, and treemaps.
490490

491491
* *Legend* &mdash; Specifies how to display the legend. You can choose to display the legend inside or outside the visualization, truncate the legend values when they're too long, and <<customize-visualization-legend,select additional statistics to show>>.
492492

493493
* *Left axis*, *Bottom axis*, and *Right axis* &mdash; Specify how you want to display the chart axes. For example, add axis labels and change the orientation and bounds.
494494

495+
[float]
496+
[[customize-visualization-appearance]]
497+
===== Visualization appearance options
498+
499+
When creating or editing a visualization, you can customize several appearance options. To do that, look for the `brush` appearance icon.
500+
501+
These options can vary depending on the type of chart.
502+
503+
[float]
504+
====== Area, Bar, and Line charts
505+
506+
**Area fill opacity**::
507+
For **Area** charts. Opacity of the area fill. Defaults to `0.3`.
508+
509+
**Bar orientation**::
510+
For **Bar** charts. Choose between **Horizontal** and **Vertical**.
511+
512+
**Line interpolation**::
513+
For **Line** charts. Choose how to interpolate the line between data points from the available options: **Straight** (default), **Smooth**, and **Step**.
514+
515+
**Missing values**::
516+
For **Area** and **Line** charts. Choose between **Hide**, **Zero**, **Linear**, **Last**, and **Next**. This option controls how gaps in data appear on the chart. By default, gaps are hidden.
517+
+
518+
_Missing values_ include empty buckets and metrics: Buckets without documents or metrics that returned `null` due to their operation and data content.
519+
+
520+
NOTE: You can only use this option when the **Include empty rows** option of the chart is enabled or when a metric produces a null bucket. For example, if a moving average finds empty buckets.
521+
+
522+
* **Hide**: Don't show gaps in data.
523+
+
524+
image::images/charts-gaps-fill-hide.png["Hide missing values", width=50%]
525+
+
526+
* **Zero**: Fill gaps by connecting starting and ending data points to zero.
527+
+
528+
image::images/charts-gaps-fill-zero.png["Fill gaps to zero", width=50%]
529+
+
530+
* **Linear**: Fill gaps by connecting related starting and ending data points together with a direct line.
531+
+
532+
image::images/charts-gaps-fill-linear.png["Fill gaps with a direct line", width=50%]
533+
+
534+
* **Last**: Fill gaps between data points with a horizontal or vertical line that uses the last ending point value, when available, to determine its position.
535+
+
536+
image::images/charts-gaps-fill-last.png["Fill gaps with a straight line from last known data point", width=50%]
537+
+
538+
* **Next**: Fill gaps between data points with a horizontal or vertical line that uses the next starting point value, when available, to determine its position.
539+
+
540+
image::images/charts-gaps-fill-next.png["Fill gaps with a straight line from next known data point", width=50%]
541+
542+
**End values**::
543+
If you've chosen to show missing values, you can also decide to extend data series to the edge of the chart. By default, end values are hidden.
544+
+
545+
* **Hide**: Don't extend series to the edge of the chart.
546+
* **Zero**: Extend series as zero to the edge of the chart.
547+
* **Nearest**: Extend series with their first or last value to the edge of the chart.
548+
549+
**Show as dotted line**::
550+
If you've chosen to show missing values, you can turn on this option to show gaps as a dotted line.
551+
552+
**Point visibility**::
553+
For **Area** and **Line** charts. Use this option to show or hide data points. Set to `Auto` by default: Points are visible unless the distance between them is too short.
554+
555+
[float]
556+
====== Tables
557+
558+
**Density**::
559+
Make the table more or less compact. Choose between **Compact**, **Normal** (default), and **Expanded**.
560+
561+
**Max header cell lines**::
562+
The maximum number of lines that header cells can span over. If the content exceeds this limit and is truncated, an ellipsis indicates it.
563+
564+
**Body cell lines**::
565+
The fixed number of lines that body cells span over. If the content exceeds this limit and is truncated, an ellipsis indicates it.
566+
567+
**Paginate table**::
568+
Turn on this option to paginate the table. Pagination shows when the table contains at least 10 items, and lets you define how many items to display per page. When turned off, you can scroll through all items.
569+
570+
[float]
571+
====== Pie charts
572+
573+
**Donut hole**::
574+
Display a **Small**, **Medium**, or **Large** hole at the center of the pie chart. Defaults to **None**.
575+
576+
[float]
577+
====== Gauge charts
578+
579+
**Gauge shape**::
580+
Define the shape of the gauge. Choose between **Linear**, **Minor arc**, **Major arc**, and **Circle**. When set to **Linear**, you can choose to display the chart horizontally or vertically.
581+
582+
[float]
583+
====== Tag clouds
584+
585+
**Font size**::
586+
Define the range of font sizes used in the tag cloud. The font size is based on the number of times a tag appears in the data.
587+
588+
**Orientation**::
589+
Define the orientation of the tags. Choose **Single**, **Right angled**, and **Multiple**.
590+
591+
**Show label**::
592+
Turn on this option to show a label for the tag cloud. You can define this label when defining the tags to show for the visualization, by customizing the **Name** field.
593+
495594
[float]
496595
[[customize-visualization-legend]]
497596
===== Customize a visualization legend

0 commit comments

Comments
 (0)