> For the complete documentation index, see [llms.txt](https://docs.lowcoder.cloud/lowcoder-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.lowcoder.cloud/lowcoder-documentation/build-applications/app-editor/visual-components/dashboard-and-reporting/charts-and-graphs/bar-chart.md).

# Bar Chart

In Lowcoder, the **Bar Chart** component enables the visualisation of categorical data through rectangular bars, making it ideal for comparing quantities across different categories.

**Key Features:**

1. **Data Binding:** The Bar Chart can display data from arrays of JavaScript objects, with each object representing a data point. For example:

   ```json
   [
     { "date": "2022-03-01", "fruit": "apple", "count": 4 },
     { "date": "2022-03-01", "fruit": "banana", "count": 6 },
     { "date": "2022-04-01", "fruit": "grape", "count": 10 }
   ]
   ```

This data structure allows for straightforward mapping of categories and values on the chart.

2. **Chart Configuration:** Drag a Bar chart from the Components panel on right side. Adjust settings such as axis types, labels, and series to tailor the chart to your data.
3. **Dynamic Data Transformation:** Utilize JavaScript within Lowcoder to transform and manipulate data before rendering. This is particularly useful when working with data from queries that may need restructuring. For instance, transforming query results into the desired format for the chart.
4. **Styling and Theming:** Apply custom styles to the Bar Chart to match your application's design. This includes modifying colors, fonts, and other visual elements. Additionally, you can integrate Apache ECharts for advanced customization by providing a JSON configuration in the chart's settings.

### Component Playground

{% embed url="<https://app.lowcoder.cloud/playground/chart/1>" %}

### Component Auto-Docs

{% embed url="<https://app.lowcoder.cloud/components/barChart>" %}


---

# 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.lowcoder.cloud/lowcoder-documentation/build-applications/app-editor/visual-components/dashboard-and-reporting/charts-and-graphs/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.
