# 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: 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:

```
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>
```

The question should be specific, self-contained, and written in natural language.
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.
