﻿---
title: Lens visualizations
description: Lens is Kibana's visualization editor for building charts, tables, maps, and metrics. It supports two modes for creating visualizations: Point-and-click:...
url: https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/7379/explore-analyze/visualize/lens
products:
  - Kibana
applies_to:
  - Elastic Cloud Serverless: Generally available
  - Elastic Stack: Generally available
---

# Lens visualizations
**Lens** is Kibana's visualization editor for building charts, tables, maps, and metrics. It supports two modes for creating visualizations:
- **Point-and-click**: Configure your visualization interactively by selecting fields from a [data view](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/7379/explore-analyze/find-and-organize/data-views), choosing aggregations, and setting dimensions and display options. No query writing required. Data views are created automatically when you [upload a file](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/7379/manage-data/ingest/upload-data-files) or [add sample data](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/7379/manage-data/ingest/sample-data); otherwise, you need to create one manually.
- **Query**: Write an [ES|QL](https://docs-v3-preview.elastic.dev/elastic/elasticsearch/tree/main/reference/query-languages/esql) or [PromQL](https://docs-v3-preview.elastic.dev/elastic/elasticsearch/tree/main/reference/query-languages/esql/commands/promql) query to retrieve and transform your data, then configure the visualization on top of the result. Best suited for cross-index queries, complex filtering, and custom calculations. Refer to [ES|QL visualizations](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/7379/explore-analyze/visualize/esorql) for details.

<agent-skill url="https://github.com/elastic/agent-skills/tree/main/skills/kibana/kibana-dashboards">
  A skill is available to help AI agents with this topic.
</agent-skill>


With Lens, you can create the following visualization types:

| **Chart type**                                                                                                                      | **Use when you want to...**                                                             |
|-------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------|
| **XY charts**                                                                                                                       | **Plot data on axes to reveal trends, comparisons, and distributions.**                 |
| [Bar](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/7379/explore-analyze/visualize/charts/bar-charts)               | Compare values across discrete categories or show distributions with histogram buckets. |
| [Line](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/7379/explore-analyze/visualize/charts/line-charts)             | Show how a metric changes over time or another continuous dimension.                    |
| [Area](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/7379/explore-analyze/visualize/charts/area-charts)             | Show change over time while emphasizing volume or stacked proportions.                  |
| **Partition charts**                                                                                                                | **Divide a total into segments to show how parts relate to the whole.**                 |
| [Pie](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/7379/explore-analyze/visualize/charts/pie-charts)               | Show how parts make up a whole with a small number of slices.                           |
| [Treemap](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/7379/explore-analyze/visualize/charts/treemap-charts)       | Show hierarchical proportions across nested categories.                                 |
| [Waffle](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/7379/explore-analyze/visualize/charts/waffle-charts)         | Show part-to-whole as a grid of equal cells where filled cells represent proportion.    |
| [Mosaic](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/7379/explore-analyze/visualize/charts/mosaic-charts)         | Compare part-to-whole across two categorical dimensions in a tiled layout.              |
| **Single value charts**                                                                                                             | **Highlight a key number, KPI, or progress toward a goal.**                             |
| [Metric](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/7379/explore-analyze/visualize/charts/metric-charts)         | Highlight a single KPI or a small set of critical numbers.                              |
| [Gauge](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/7379/explore-analyze/visualize/charts/gauge-charts)           | Show progress toward a target or status against thresholds for a single metric.         |
| **More charts**                                                                                                                     | **Additional visualizations for tabular data, spatial patterns, and text analysis.**    |
| [Table](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/7379/explore-analyze/visualize/charts/tables)                 | Present precise values, rankings, or multi-metric details in a compact layout.          |
| [Heat map](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/7379/explore-analyze/visualize/charts/heat-map-charts)     | Reveal density or patterns across two dimensions using color intensity.                 |
| [Tag cloud](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/7379/explore-analyze/visualize/charts/tag-cloud-charts)   | Highlight the most frequent or important terms in a dataset.                            |
| [Region map](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/7379/explore-analyze/visualize/charts/region-map-charts) | Show how values vary across geographic regions (choropleth).                            |


## Create visualizations with the API

<applies-to>
  - Elastic Cloud Serverless: Preview
  - Elastic Stack: Preview since 9.4
</applies-to>

You can create and manage Lens visualizations programmatically using the Visualizations API ([stateful](https://www.elastic.co/docs/api/doc/kibana/group/endpoint-visualizations), [serverless](https://www.elastic.co/docs/api/doc/serverless/group/endpoint-visualizations)). This is useful for managing visualizations as code, automating their lifecycle, or building tooling around Lens charts.
Visualizations created through this API can be added to dashboards using the Kibana UI or the Dashboards API.
<note>
  The Visualizations API is in technical preview and may change in future releases.
</note>


## Create visualizations

If you’re unsure about the visualization type you want to use, or how you want to display the data, drag the fields you want to visualize onto the workspace, then let **Lens** choose for you.
If you already know the visualization type you want to use, and how you want to display the data, use the following process.
<stepper>
  <step title="Choose the visualization type">
    New visualizations generally default to **Bar** or **Line** charts. You can change that manually to the visualization type that you want.As you drag fields into the workspace or to the layer pane, Lens automatically generates alternative visualizations. To view them, click **Suggestions** at the bottom of the workspace. If a suggested visualization meets your needs, click **Save and return** to add it to the dashboard.
  </step>

  <step title="Choose the data you want to visualize">
    As you drag fields to the layer pane, Lens automatically selects an aggregation function, for example **Date histogram**, **Intervals**, or **Top values**. Click a field to learn more about its data or to edit its appearance.
  </step>

  <step title="Customize the appearance of your visualization">
    In the Lens editor, use the `brush` **Style** and ![Legend icon](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/7379/explore-analyze/images/kibana-legend-icon.svg) **Legend** controls in the layer pane to customize your visualization. The available controls vary by chart type. For all settings, open the dedicated page for your chart from the [visualization type table](#lens-visualization-types).
  </step>

  <step title="(Optional) Add layers">
    You can add multiple layers to a visualization, such as **Visualization**, [**Annotations**](#add-annotations), or [**Reference lines**](#add-reference-lines). Click the **Add layer** icon `plus_square` , then choose the layer type and select the data view.
    To duplicate or delete a layer, click ![Actions menu to duplicate Lens visualization layers](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/7379/explore-analyze/images/kibana-vertical-actions-menu.png) on the layer tab.
  </step>

  <step title="Save and add the panel">
    - If you accessed Lens from a dashboard, select **Save and return** to save the visualization and add it to that dashboard, or select **Save to library** to add the visualization to the Visualize library and reuse it later.
    - If you accessed Lens from the Visualize library, select **Save**. A menu opens and lets you add the visualization to a dashboard and to the Visualize library.
  </step>
</stepper>

Once you have created your visualization, you can edit it directly on the dashboard. Click the **Edit visualization configuration** icon ![Edit visualization icon](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/7379/explore-analyze/images/kibana-edit-visualization-icon.png) on the panel.

### Change the fields list

When you can create a visualization, you can change the fields list to display a different data view, a different time range, or add your own fields. To do that, open the data view dropdown and select **Add a field to this data view**.
![Dropdown menu located next to data view field with items for adding and managing fields](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/7379/explore-analyze/images/kibana-lens_dataViewDropDown_8.4.0.png)
If the fields list is empty, change the [time filter](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/7379/explore-analyze/query-filter/filtering).
For more information about adding fields to data views and examples, refer to [Explore your data with runtime fields](/elastic/docs-content/pull/7379/explore-analyze/find-and-organize/data-views#runtime-fields).

### Assign colors to terms

<applies-to>
  - Elastic Cloud Serverless: Generally available
  - Elastic Stack: Generally available since 9.1
  - Elastic Stack: Preview in 9.0
</applies-to>

You can assign specific colors to terms in your visualizations. This color mapping can be useful in several situations:
- **Visual recognition and recall**: Keep colors consistent for each term regardless of filters or sorting.
- **Semantic meaning**: Use colors to convey meaning or categorization.
- **Consistency**: Align with brand colors and improve overall aesthetic consistency.

![A bar chart with terms mapped to specific colors](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/7379/explore-analyze/images/color_mapping.png)

#### Supported visualization types

Color mapping is available for the following **Lens** visualization types:
- **Data tables**: Assign colors to terms in **Rows** or **Metrics** fields. You can apply colors to cell backgrounds or text.
- **XY charts (Area, Bar, Line)**: Assign colors to breakdown dimensions that split your data into multiple series.
- **Partition charts (Donut, Pie, Treemap, Waffle)**: Assign colors to the main slice or group-by dimension that defines the chart segments.
- **Tag clouds**: Assign colors to the tags dimension that determines the terms displayed in the cloud.


#### Configure color mapping in a chart

To assign colors to terms in your visualization:
1. Create a visualization using one of the supported types.
2. Add a categorical field that contains the terms you want to color.
3. In the field configuration, look for the **Color by value** option:
   - For data tables: Select **Cell** or **Text**
- For other chart types: This option appears when you have a categorical breakdown
4. Click the **Edit colors** icon. In the menu that opens, keep **Use legacy palettes** turned off to be able to assign colors to specific terms
5. Select a color palette from the available options:
   - **Elastic**: The default and most recent palette. It is intentionally built from a color spectrum designed for flexibility and consistency, while being suited for future accessibility improvements.
- <applies-to>Elastic Cloud Serverless: Generally available</applies-to> <applies-to>Elastic Stack: Generally available since 9.4</applies-to> **Elastic (line optimized)**: A variant of the Elastic palette that reorders colors for better contrast between adjacent series in line charts. Lens automatically applies this palette when you create or switch to a line chart. Switching to a different chart type reverts to the standard palette. You can override this by manually selecting a different palette.
- <applies-to>Elastic Cloud Serverless: Generally available</applies-to> <applies-to>Elastic Stack: Generally available since 9.4</applies-to> **Severity**: A theme-aware categorical palette designed for severity-based data, with colors that adapt to both light and dark themes.
- **Kibana 7.0**: A palette that matches the Kibana 7.0 color theme for visualizations
- **Kibana 4.0**: A palette that matches the Kibana 4.0 color theme for visualizations
- **Elastic classic**: A palette made of classic Elastic brand colors
6. Select the color mode you'd like to use with this palette:
   - **Categorical**: Assign a distinct color to each term
- **Gradient**: Assign gradients of the same color to each term
7. Choose which terms to color. You can assign colors manually or select **Add all unassigned terms** for automatic assignment.
   <tip>
   You can assign several terms to the same color.
   </tip>
8. Choose how to handle unassigned terms: Use the selected color palette or assign a single color.


#### Color options and accessibility

**Discrete colors and gradients**
Choose from discrete color sets or generate sequential or divergent gradients. Gradients work well for Likert scales and other term scales.
**Theme-aware neutral colors**
Use neutral gray colors that adjust automatically between light and dark themes. These help de-emphasize less important data.
**Accessibility warnings**
The system warns you when colors don't have enough contrast for accessibility.

#### Best practices

**Maintain consistency**
Use color mapping to create consistent color schemes when the same categorical data appears across multiple visualizations in your dashboards.
**Use semantic colors**
Leverage color associations that users already understand (such as red for errors, green for success) to make your visualizations more intuitive.
**Consider performance**
Color mapping works best with fields that have a reasonable number of distinct values. Fields with hundreds or thousands of unique terms may impact visualization performance.
**Plan for themes**
When choosing colors, consider how they appear in both light and dark themes. Use theme-aware neutral colors when you want to de-emphasize data.

### Create visualizations with keyboard navigation

To use a keyboard instead of a mouse, use the **Lens** fully accessible and continuously improved drag system.
1. Select the field in the fields list or layer pane. Most fields have an inner and outer select state. The inner state opens a panel with detailed information or options. The outer state allows you to drag the field. Tab through the fields until you get the outer state on the field.
   ![Lens drag and drop focus state](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/7379/explore-analyze/images/kibana-lens_drag_drop_2.png)
2. Complete the following actions:
   - To select a field, press Space bar.
- To select where you want to drop the field, use the Left and Right arrows.
- To reorder the fields on the layer pane, use the Up and Down arrows.
- To duplicate an action, use the Left and Right arrows, then select the **Drop a field or click to add** field you want to use.
  ![Using drag and drop to reorder](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/7379/explore-analyze/images/kibana-lens_drag_drop_3.gif)
3. To confirm the action, press Space bar. To cancel, press Esc.


### Use formulas to perform math

Lens formulas let you do math using a combination of Elasticsearch aggregations and math functions. For example, you can use formulas to divide two values and produce a percent value.
When you add a categorical field to your visualization, select the field to open its appearance settings, choose **Formula**, and set **Appearance** > **Value format** to **Percent** for a more accurate display.
For more details on how it works, click the **Formula reference** icon ![Formula reference icon](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/7379/explore-analyze/images/kibana-formula_reference.png) on the Formula panel.
These are examples of common formulas:
<definitions>
  <definition term="Filter ratio">
    To filter a document set, use `kql=''`, then compare to other documents within the same grouping:
    ```
    count(kql='response.status_code > 400') / count()
    ```
  </definition>
  <definition term="Week over week">
    To get the value for each grouping from the previous week, use `shift='1w'`.
    ```
    percentile(system.network.in.bytes, percentile=99) /
    percentile(system.network.in.bytes, percentile=99, shift='1w')
    ```
    You are unable to combine different time shifts, such as `count(shift="1w") - count()` and `count(shift="1w") - count(shift="1m")`, with the **Top values** function.
  </definition>
  <definition term="Percent of total">
    To convert each grouping into a percent of the total, formulas calculate `overall_sum` for all groupings:
    ```
    sum(products.base_price) / overall_sum(sum(products.base_price))
    ```
  </definition>
</definitions>


### Compare differences over time

Compare your real-time data to the results that are offset by a time increment. For example, you can compare the real-time percentage of a user CPU time spent to the results offset by one hour.
1. In the layer pane, click the field you want to offset.
2. Click **Advanced**.
3. In the **Time shift** field, enter the time offset increment.

For a time shift example, refer to [Compare time ranges](/elastic/docs-content/pull/7379/explore-analyze/dashboards/create-dashboard-of-panels-with-ecommerce-data#compare-time-ranges).

### Create partition charts with multiple metrics

To create partition charts, such as pie charts, configure one or more **Slice by** dimensions to define the partitions, and a **Metric** dimension to define the size. To create partition charts with multiple metrics, use the layer settings. Multiple metrics are unsupported for mosaic visualizations.
For detailed instructions on creating pie charts, including best practices and configuration options, refer to [Build pie charts with Kibana](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/7379/explore-analyze/visualize/charts/pie-charts).
1. In the layer pane, click ![Actions menu for the partition visualization layer](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/7379/explore-analyze/images/kibana-lens_layerActions_8.5.0.png), then select **Settings**/**Layer settings**.
2. Select **Multiple metrics**.
3. Click **X**.


### Improve visualization loading time

<applies-to>
  - Elastic Stack: Preview
</applies-to>

Data sampling allows you to improve the visualization loading time. When you create your visualization, click the **Settings**/**Layer settings** icon `gear` and use the slider to adjust the **Sampling** percentage. For example, on large datasets, you can decrease loading time by using a lower sampling percentage. This increases performance but reduces accuracy.

### Add annotations

<applies-to>
  - Elastic Stack: Preview
</applies-to>

Annotations allow you to call out specific points in your visualizations that are important, such as significant changes in the data. You can add annotations for any data view, add text and icons, specify the line format and color, and more.
Click the **Add layer** icon `plus_square` , select **Annotations** and select the annotation method you want to use:
<dropdown title="New annotation">
  1. Select the data view for the annotation.
  2. From the fields list, drag a field to the **Horizontal axis** field.
  To use global filters in the annotation, click the **Settings**/**Layer settings** icon `gear` on the annotations layer, and select **Use global filters**.From the annotation panel, you can choose the type of placement and adjust the its appearance.
  <definitions>
    <definition term="Placement">
      - **Static date** — Displays annotations for specific times or time ranges. To create static annotations:
        1. Select **Static date**.
      2. In the **Annotation date** field, click ![Annodation date icon in Lens](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/7379/explore-analyze/images/kibana-lens_annotationDateIcon_8.6.0.png), then select the date.
      3. To display the annotation as a time range, select **Apply as range**, then specify the **From** and **To** dates.
      - **Custom query** — Displays annotations based on custom Elasticsearch queries. For information about queries, check [Semi-structured search](/elastic/docs-content/pull/7379/explore-analyze/query-filter/languages/kql#semi-structured-search). To create custom query annotations:
        1. Select **Custom query**.
      2. Enter the **Annotation query** for the data you want to display. For detailed information about queries and examples, check [Semi-structured search](/elastic/docs-content/pull/7379/explore-analyze/query-filter/languages/kql#semi-structured-search).
      3. Select the **Target date field**.
    </definition>
    <definition term="Appearance">
      Configure the annotation settings, including:
      - **Name**: Enter the name of the annotation.
      - **Icon decoration**: Choose from various icon styles to represent your annotations on the visualization. Options include markers like circles, triangles, squares, and other symbols.
      - **Text decoration**: Set the style for the text labels of your annotations.
      - **Line**: Control the width/thickness of annotation lines.
      - **Color**: Set a custom color for your annotation markers.
      - **Hide annotation**: Temporarily hide annotations from your visualization without deleting them.
    </definition>
  </definitions>
  **Tooltip**
  :  Add a field to the annotation tooltip
  1. If you created a custom query annotation, click **Add field** to add a field to the annotation tooltip.
  Once you are done, you can add your new annotation layer to the **Visualize Library** so that it can be reused in other visualizations. Note that any changes made to the annotation group is reflected in all visualizations to which it is added.
</dropdown>

<dropdown title="Load from library">
  Add a library annotation group to a visualization.
</dropdown>

![Lens annotations](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/7379/explore-analyze/images/kibana-lens_annotations_8.2.0.png)


### Add reference lines

With reference lines, you can identify specific values in your visualizations with icons, colors, and other display options. You can add reference lines to any visualization type that displays axes.
For example, to track the number of bytes in the 75th percentile, add a shaded **Percentile** reference line to your time series visualization.
![Lens drag and drop focus state](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/7379/explore-analyze/images/kibana-lens_referenceLine_7.16.png)

From your visualization, click **Add layer > Reference lines**. Click the vertical axis value, and specify the reference line you want to use by choosing one fhe following placement methods:
<definitions>
  <definition term="Static">
    To add a static reference line.
  </definition>
  <definition term="Quick functions">
    To add a dynamic reference line.
  </definition>
  <definition term="Formula">
    To calculate the reference line value with math.
  </definition>
</definitions>

You can also customize the display by adjusting the **Appearance** settings.

### Apply filters

You can use the query bar to create queries that filter all the data in a visualization, or use the layer pane and legend filters to apply filters based on field values.

#### Apply multiple KQL filters

With the **Filters** function, you can apply more than one KQL filter, and apply a KQL filter to a single layer so you can visualize filtered and unfiltered data at the same time.
1. In the layer pane, click a field.
2. Click the **Filters** function.
3. Click **Add a filter**, then enter the KQL filter you want to apply.
   To try the **Filters** function on your own, refer to [Compare a subset of documents to all documents](/elastic/docs-content/pull/7379/explore-analyze/dashboards/create-dashboard-of-panels-with-web-server-data#custom-ranges).


#### Apply a single KQL filter

With the **Filter by** advanced option, you can assign a color to each filter group in **Bar** and **Line and area** visualizations, and build complex tables. For example, to display failure rate and the overall data.
1. In the layer pane, click a field.
2. Click **Add advanced options**, then select **Filter by**.
3. Enter the KQL filter you want to apply.


#### Apply legend filters

Apply filters to visualizations directly from the values in the legend. **Bar**, **Line and area**, and **Proportion** visualizations support legend filters.
In the legend, click the field, then choose one of the following options:
- **Filter for value** — Applies a filter that displays only the field data in the visualization.
- **Filter out value** — Applies a filter that removes the field data from the visualization.


#### Filter pill actions

You can interact with filter pills to edit them, temporarily alter their behavior without having to remove them, or make them available in other contexts. The following options are available when selecting a filter pill:
<definitions>
  <definition term="Pin across all apps and Unpin">
    Adds this filter to available dashboards and to apps such as **Discover**, **Lens**, **Maps**, and **Visualize**. You remove the filter if you:
    - Unpin it. In this case, the filter only remains on the currently open app, unpinned.
    - Remove it from any place while it's still pinned.
    - Refresh your session, for example by opening a dashboard in a new tab. Pinned filters are not saved along with the dashboard, visualization, or Discover session that you added them to.
    <tip>
      When a pinned filter can't be applied, for example if a field specified in the filter doesn't exist in the current data view, the filter is ignored and shows in a different color.
    </tip>
  </definition>
  <definition term="Edit filter">
    Lets you edit and update the filter.
  </definition>
  <definition term="Exclude results and Include results">
    Reverses the filter behavior.
  </definition>
  <definition term="Temporarily disable and Re-enable">
    Lets you temporarily deactivate a filter instead of requiring you to remove it. This is particularly useful for testing different filter combinations.
  </definition>
  <definition term="Delete">
    Removes the filter.
  </definition>
</definitions>

You can perform most of these actions at once for all filters in your current view using the **Query menu**. From that menu, select **Apply to all**, then choose the action you'd like to perform.
<applies-to>Elastic Stack: Generally available since 9.4</applies-to> <applies-to>Elastic Cloud Serverless: Generally available</applies-to> When at least one filter pill is present, you can collapse the filter pills section to reclaim screen space. Select `filter` **Collapse filters** to hide the pills, or `filter` **Expand filters** to show them again. Your preference is saved across sessions.

## Explore the data in Discover

When your visualization includes one data view, you can open and explore the visualization data in **Discover**.
To get started, click **Explore data in Discover** in the toolbar.
For more information about exploring your data with **Discover**, check out [Discover](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/7379/explore-analyze/discover).

## View the visualization data and requests

To view the data included in the visualization and the requests that collected the data, use the **Inspector**.
1. In the toolbar, click **Inspect**.
2. Open the **View** dropdown, then click **Data**.
   1. From the dropdown, select the table that contains the data you want to view.
2. To download the data, click **Download CSV**, then select the format type.
3. Open the **View** dropdown, then click **Requests**.
   1. From the dropdown, select the requests you want to view.
2. To view the requests in **Console**, click **Request**, then click **Open in Console**.


## Frequently asked questions

For answers to common **Lens** questions, review the following.
<dropdown title="When should I normalize the data by unit or use a custom interval?">
  - **Normalize by unit** — Calculates the average for the interval. When you normalize the data by unit, the data appears less granular, but **Lens** is able to calculate the data faster.
  - **Customize time interval** — Creates a bucket for each interval. When you customize the time interval, you can use a large time range, but **Lens** calculates the data slower.
  To normalize the interval:
  1. In the layer pane, click a field.
  2. Click **Add advanced options > Normalize by unit**.
  3. From the **Normalize by unit** dropdown, select an option, then click **Close**.
  To create a custom interval:
  1. In the layer pane, click a field.
  2. Select **Customize time interval**.
  3. Change the **Minimum interval**, then click **Close**.
</dropdown>

<dropdown title="What data is categorized as Other?">
  The **Other** category contains all of the documents that do not match the specified criteria or filters. Use **Other** when you want to compare a value, or multiple values, to a whole.By default, **Group other values as "Other"** is enabled when you use the **Top values** function.To disable **Group other values as "Other"**, click a field in the layer pane, click **Advanced**, then deselect **Group other values as "Other"**.
</dropdown>

<dropdown title="How do I add documents without a field?">
  By default, **Lens** retrieves only the documents from the fields. For bucket aggregations, such as **Top values**, you can add documents that do not contain the fields, which is helpful when you want to make a comparison to the whole documentation set.
  1. In the layer pane, click a field.
  2. Click **Advanced**, then select **Include documents without this field**.
</dropdown>

<dropdown title="When do I use runtime fields vs. formula?">
  Use runtime fields to format, concatenate, and extract document-level fields. Runtime fields work across all of Kibana and are best used for smaller computations without compromising performance.Use formulas to compare multiple Elasticsearch aggregations that can be filtered or shifted in time. Formulas apply only to **Lens** panels and are computationally intensive.
</dropdown>

<dropdown title="Can I add more than one y-axis scale?">
  For each y-axis, you can select **Left** and **Right**, and configure a different scale.
</dropdown>

<dropdown title="Why is my value the incorrect color when I use value-based coloring?">
  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 correct value precision setup. Value formatters could round the numeric values up or down.
  - Make sure the correct 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 in 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.
</dropdown>

<dropdown title="How do I sort by multiple columns?">
  Multiple column sorting is unsupported, but is supported in **Discover**. For information on how to sort multiple columns in **Discover**, refer to [Explore the fields in your data](/elastic/docs-content/pull/7379/explore-analyze/discover/discover-get-started#explore-fields-in-your-data).
</dropdown>

<dropdown title="Why is my field missing from the fields list?">
  The following field types do not appear in the **Available fields** list:
  - Full-text
  - geo_point
  - flattened
  - object
  Verify if the field appears in the **Empty fields** list. **Lens** uses heuristics to determine if the fields contain values. For sparse data sets, the heuristics are less precise.
</dropdown>

<dropdown title="What do I do with gaps in time series visualizations?">
  When you create **Area** and **Line** charts with sparse time series data, open **Visual options** in the editor toolbar, then select a **Missing values** option.
</dropdown>

<dropdown title="Can I statically define the y-axis scale?">
  You can set the scale, or *bounds*, for area, bar, and line charts. You can configure the bounds for all functions, except **Percentile**. Logarithmic scales are unsupported.To configure the bounds, use the menus in the editor toolbar. Bar and area charts required 0 in the scale between **Lower bound** and **Upper bound**.
</dropdown>

<dropdown title="Is it possible to display icons in data tables?">
  You can display icons with [field formatters](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/7379/explore-analyze/find-and-organize/data-views) in data tables.
</dropdown>

<dropdown title="How do I inspect Elasticsearch queries in visualizations?">
  You can inspect the requests sent by the visualization to Elasticsearch using the Inspector. It can be accessed within the editor or in the dashboard.
</dropdown>

<dropdown title="How do I isolate a single series in a chart?">
  For area, line, and bar charts, press Shift, then click the series in the legend. All other series are automatically deselected.
</dropdown>

<dropdown title="How do I visualize saved Discover sessions?">
  Visualizing saved Discover sessions is unsupported.
</dropdown>

<dropdown title="How do I change the number of suggestions?">
  Configuring the **Suggestions** is unsupported.
</dropdown>

<dropdown title="Is it possible to have pagination in a data table?">
  Pagination in a data table is unsupported. To use pagination in data tables, create an [aggregation-based data table](/elastic/docs-content/pull/7379/explore-analyze/visualize/legacy-editors/aggregation-based#types-of-visualizations).
</dropdown>

<dropdown title="How do I change the color for a single data point?">
  Specifying the color for a single data point, such as a single bar or line, is unsupported.
</dropdown>

<dropdown title="How does dynamic coloring work for the metric visualization?">
  In the color palette editor, if you select **Value type: Number** the colors are applied based on the **Primary metric** value.The **Primary metric** refers to the large number displayed in each tile.![Illustration of where to find the primary metric in a metric visualization.](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/7379/explore-analyze/images/kibana-lens_primaryMetric.png)If you select **Value type: Percent**, the primary metric values are mapped to a range between 0 and 100 percent. The bounds of the range depend on your configuration.The logic is as follows. If there is a Breakdown dimension for multiple visualization tiles:
  - When there is a **Maximum dimension**, the range is from zero to the value of your **Maximum dimension**.
  - When there is no **Maximum dimension**, the range is from the smallest primary metric values to the greatest primary metric values.
  If there is no Breakdown dimension for a single visualization tile:
  - When there is a **Maximum dimension**, the range is from zero to the value of your **Maximum dimension**.
  - When there is no **Maximum dimension**, **Value type: Percent** cannot be selected because there’s no way to determine a range.
</dropdown>