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

# Bar Chart

A bar chart is a type of chart that presents categorical data with rectangular bars. Each bar's length or height corresponds to the value it represents. Bar charts are effective for comparing the values of different categories and are widely used in fields such as business, marketing, and social sciences.

### Example:

Consider a bar chart illustrating the monthly expenses of a household over a year. The x-axis represents the months (January, February, etc.), and the y-axis represents the total expenses for each month. Each bar on the chart corresponds to a specific month, allowing for a quick comparison of expenses between different months.

<figure><img src="/files/UPOPVfUp4XrERswodv4b" alt=""><figcaption></figcaption></figure>

### Steps:

* Highlight the range of cells containing your data in Google Sheets. Similar to Excel, for X-axis values, select cells in column A (e.g., A1:A30), and for Y-axis values, select cells in column C (e.g., C1:C30).
* Click on Plot to create a Bar Chart
* You can customize your chart using options in the Chart Editor. For example, you can title your chart, adjust the axis labels, and more.

### O


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.predicteasy.com/visualization-charts/bar-chart.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
