> 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/bar-chart.md).

# 柱狀圖

### 1. 圖表介紹

柱狀圖用來顯示某一類別在特定時間段內的數據變化，或多個類別之間的數據比較。透過柱子的高度表現數據差異，能清楚地看出最大值和最小值。

如下柱狀圖表：統計每個品類的採購量。

![各品類採購量柱狀圖](https://273888574-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9WI4IMScYYFwRQSZY8Zr%2Fuploads%2FRFGKNVCoRmY68wpGJp0O%2Fbar-1.png?alt=media)

### 2. 示例及配置

下面透過一個案例介紹如何製作柱狀圖。

在採購管理表中，統計各個品類的採購數量：

* 類別分組（X 軸）：選擇按【名稱】
* 統計指標（Y 軸）：採購數量的總和

配置方法：

#### 2.1 新建一個統計表

打開圖表設置窗口。

![圖表設置窗口](https://273888574-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9WI4IMScYYFwRQSZY8Zr%2Fuploads%2FNfYLUIZgaddvTSzuBwvk%2Fbar-2.png?alt=media)

#### 2.2 選擇工作表需要統計的範圍

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

設置【選擇時間範圍】：創建時間（全部）；【統計數據範圍】：全部數據。

#### 2.3 設置 X 軸

設置統計值，選擇「名稱」。

![設置 X 軸](https://273888574-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9WI4IMScYYFwRQSZY8Zr%2Fuploads%2FSJsByLsuVwlzlkUltV6N%2Fbar-4.png?alt=media)

#### 2.4 設置 Y 軸

設置統計值，選擇「數字」。

![設置 Y 軸](https://273888574-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9WI4IMScYYFwRQSZY8Zr%2Fuploads%2FDHWMo8A9Wwey5LnTAtWD%2Fbar-5.png?alt=media)

> 注意：Y 軸只允許設置數值，可在此設置計算方式——求和、最大值、最小值還是平均值。

#### 2.5 圖形預覽保存

點擊【保存】按鈕，完成圖表配置。

![保存柱狀圖](https://273888574-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9WI4IMScYYFwRQSZY8Zr%2Fuploads%2FnBVsnJyKO9BGK8CMf7gX%2Fbar-6.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/bar-chart.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.
