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

57 lines
2.1 KiB
Markdown

---
layout: default
title: Table
parent: Visualization types
grand_parent: Creating visualizations using queries
great_grand_parent: Building data visualizations
nav_order: 65
---
# Tables in the visualization editor
A table displays query results in rows and columns. Use a table to view raw data or summary statistics.
## Creating a table
The following example demonstrates a basic table visualization. Before you begin, complete the [prerequisites]({{site.url}}{{site.baseurl}}/dashboards/visualize/visualization-editor/#prerequisites).
### Basic table
Start with a query that returns multiple fields:
```sql
source = opensearch_dashboards_sample_data_flights | fields Carrier, AvgTicketPrice, DistanceMiles, FlightDelayMin | head 20
```
{% include copy.html %}
After running this query, select **Table** as the chart type. The result is a table displaying the selected fields as columns, as shown in the following image.
![A table displaying flight data]({{site.url}}{{site.baseurl}}/images/dashboards/visualization-editor/table-chart-basic-result.png){: width="100%" }
## Configuring a table
You can configure the following settings in the configuration panel.
### Table
| Setting | Description |
| --- | --- |
| **Max rows per page** | Sets the maximum number of rows displayed per page. |
| **Cell alignment** | Controls the text alignment within cells. Supported values: **Auto**, **Left**, **Center**, **Right**. |
| **Cell style** | Select **Add new cell type** to apply custom styling to specific columns. |
| **Column filters** | When enabled, displays filter controls in column headers for interactive filtering. |
### Threshold
For information about configuring thresholds, see [Thresholds]({{site.url}}{{site.baseurl}}/dashboards/visualize/visualization-editor/configuring-visualizations/thresholds/).
### Table footer
| Setting | Description |
| --- | --- |
| **Show footer** | When enabled, displays a footer row with summary calculations for each column. |
### Data links
Select **Add link** to create clickable links within table cells. Use data links to navigate to external URLs or other dashboards based on cell values.