Files
honeymoose f321dfedf5 同步完成!
**同步结果摘要**:

| 目录 | 同步前 | 同步后 | 官方 |
|------|--------|--------|------|
| aggregations | 40 | 65 | 64 |
| analyzers | 8 | 141 | 140 |
| api-reference | 97 | 186 | 174 |
| benchmark | 34 | 67 | 53 |
| clients | 17 | 18 | 18 |
| dashboards | 38 | 149 | 131 |
| data-prepper | 77 | 134 | 123 |
| im-plugin | 22 | 37 | 37 |
| ingest-pipelines | 27 | 52 | 51 |
| install-and-configure | 37 | 57 | 53 |
| ml-commons-plugin | 81 | 157 | 155 |
| observing-your-data | 39 | 73 | 66 |
| query-dsl | 40 | 77 | 75 |
| search-plugins | 80 | 139 | 95 |
| security-analytics | 22 | 47 | 46 |

**说明**:
- 本地文件数 > 官方:本地有一些官方已删除或重命名的文件
- 新增了约 **740 个英文文档文件**
- 已有文件保持不变(未覆盖)
2026-11-30 10:48:30 -05:00

3.3 KiB

layout, title, parent, grand_parent, great_grand_parent, nav_order
layout title parent grand_parent great_grand_parent nav_order
default Histogram Visualization types Creating visualizations using queries Building data visualizations 35

Histograms in the visualization editor

A histogram displays the distribution of a numeric field by grouping values into bins (buckets) and showing the count of values in each bin as vertical bars.

Creating a histogram

The following example demonstrates a basic histogram visualization. Before you begin, complete the prerequisites.

Basic histogram

Start with a query that counts values grouped by a numeric field:

source = opensearch_dashboards_sample_data_flights | stats count() by AvgTicketPrice

{% include copy.html %}

After running this query, select Histogram as the chart type. The editor maps the field as follows:

  • The X-Axis displays the AvgTicketPrice field.

The result is a histogram showing the distribution of ticket prices, as shown in the following image.

Histogram showing distribution of average ticket prices{: width="100%" }

Configuring a histogram

You can configure the following settings in the configuration panel.

Fields

In the Fields section, configure the fields displayed on each axis.

Field Description
X-Axis Select a numeric field to distribute into buckets along the horizontal axis.
Y-Axis Select a numeric field for the vertical axis. If left blank, the chart displays the count of values in each bucket.

Split

In the Split by dropdown list, select a field to split the chart into separate elements by value. For more information, see Split.

Bucket

The following settings control how data is grouped into bins.

Setting Description
Bucket Size Sets the width of each bin. Enter a numeric value or leave as auto to let the editor calculate an appropriate size.
Bucket count Sets the maximum number of bins to display.

Thresholds

For information about configuring thresholds, see Thresholds.

Standard options

For information about configuring units, unit suffixes, decimal precision, and minimum and maximum values, see Standard options.

Axes

The X-axis and Y-axis share the same configuration options. For more information, see Axes.

Histogram

Use the following settings to customize the appearance of the histogram.

Setting Description
Use threshold colors When enabled, colors bars based on threshold ranges.
Show border When enabled, adds a border around each bar.

Tooltip

Toggle the Show tooltip selector to enable or disable tooltips.