> For the complete documentation index, see [llms.txt](https://docs.coreway.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.coreway.com/coreway-table/dashboard/chart-settings.md).

# 統計圖配置

### 1. 新建統計圖表

點擊工作表中的【統計】按鈕，進入統計板塊，再點擊右上角的「添加圖表」。

![統計入口](https://273888574-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9WI4IMScYYFwRQSZY8Zr%2Fuploads%2FrtTKMosBtKHbTwKAer2X%2Fchart-setting-1.png?alt=media)

![添加圖表](https://273888574-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9WI4IMScYYFwRQSZY8Zr%2Fuploads%2F4oZKk7jfAGiroTX7mObq%2Fchart-setting-2.png?alt=media)

### 2. 設置統計範圍

新建一個圖表時，第 1 步需要設置表記錄的統計範圍。

![統計範圍設置](https://273888574-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9WI4IMScYYFwRQSZY8Zr%2Fuploads%2FBS79iEwUHg2ZsVZbHCAP%2Fchart-setting-3.png?alt=media)

* **數據源：** 選擇您可見的視圖，統計該視圖下您可見的記錄；也可以不選擇視圖，改為統計所有記錄。
* **時間：** 進一步確定要統計記錄的時間範圍。選擇一個時間欄位（創建時間、修改時間，或其他日期欄位），時間範圍可選擇固定時間段（今天、昨天、本週、上週、本年、上一年……），也可以自訂時間段。例如，統計 XX 視圖下「本月」創建的記錄。
* **X 軸／Y 軸：** 按實際情況，選擇您需要顯示的統計值。

**統計圖表對記錄行數有限制嗎？**

對於統計的數據行數沒有限制，統計結果中圖表的圖例個數同樣沒有限制。

### 3. 選擇合適的圖表類型

目前支援 4 種類型：柱狀圖、折線圖、餅圖、數值圖。不同圖表類型需要設置的屬性不同。

以柱狀圖為例確定統計維度：

![柱狀圖統計維度](https://273888574-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9WI4IMScYYFwRQSZY8Zr%2Fuploads%2FTVOE8f2XXgZm0X1nlv10%2Fchart-setting-4.png?alt=media)

* **X 軸：** 即統計維度，是數據分類統計的依據。

  可選擇的欄位控件：日期控件、其他文本型控件（包括文本框、手機、郵箱等）、數值欄位。當 X 軸選擇了日期類型的欄位時，需要設置顆粒度（月、週、天……），以所選粒度作為 X 軸的分類。
* **Y 軸：** 即統計的數值。

  必須配置數值、公式／等級類型；如果是表中的數值欄位，則可對此數值欄位進行 4 種處理（求和、平均值、最大值、最小值）。

### 4. 圖表樣式

透過開關來控制樣式的顯示。

![圖表樣式開關](https://273888574-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9WI4IMScYYFwRQSZY8Zr%2Fuploads%2FYqqZbdT1epaNg2SiYnzH%2Fchart-setting-5.png?alt=media)

#### 4.1 顯示設置

顯示圖例：透過右側的「顯示圖例」開關來控制。

![顯示圖例](https://273888574-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9WI4IMScYYFwRQSZY8Zr%2Fuploads%2FMmQeJC0jt3zETI75zinI%2Fchart-setting-6.png?alt=media)

#### 4.2 數值設置

設置是否顯示數值，以及顯示幾位小數（預設為自動）。

![數值設置](https://273888574-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9WI4IMScYYFwRQSZY8Zr%2Fuploads%2FcxrhEDVGLu7hqVxQIzGJ%2Fchart-setting-7.png?alt=media)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.coreway.com/coreway-table/dashboard/chart-settings.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
