> For the complete documentation index, see [llms.txt](https://docs.getinfinity.app/user-guide/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.getinfinity.app/user-guide/comprehensive-user-guide/2.-charts/chart-customization/customizing-chart-with-advanced-editor-panel/styles/grid.md).

# Grid

The **Grid** settings in the **Styles** tab allow users to control the layout and spacing of the chart's grid. The grid determines the placement of elements such as axes, series, and labels, ensuring they fit well within the chart container.

#### **Accessing Grid Settings**

To configure the **Grid** settings:

1. Open the **Advanced Editor** and navigate to the **Styles** tab.
2. Click on **Grid** to expand the options.

<figure><img src="/files/aebmlxZRysk5avQuJXNV" alt="" width="325"><figcaption></figcaption></figure>

***

#### **Grid Settings Overview**

| Feature       | Description                                                                                |
| ------------- | ------------------------------------------------------------------------------------------ |
| **Show Grid** | Toggle the grid visibility on or off. If disabled, the chart will not have a visible grid. |
| **Top**       | Defines the top margin of the grid (in pixels).                                            |
| **Bottom**    | Defines the bottom margin of the grid (in pixels).                                         |
| **Left**      | Defines the left margin of the grid (in pixels).                                           |
| **Right**     | Defines the right margin of the grid (in pixels).                                          |

***

#### **How Grid Affects Chart Layout**

* The grid controls how much space is allocated for the **axes and series**. Adjusting these values ensures labels and data points are not **cut off** or **overlapping**.
* Larger values **increase spacing**, creating more room for labels and axes.
* Smaller values **reduce spacing**, making the chart more compact.


---

# 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.getinfinity.app/user-guide/comprehensive-user-guide/2.-charts/chart-customization/customizing-chart-with-advanced-editor-panel/styles/grid.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.
