> 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/secondary-y-axis.md).

# Secondary Y-Axis

The **Secondary Y-Axis** provides an additional vertical axis on the right side of the chart. It is particularly useful when displaying multiple data series that require different scales. The settings allow users to configure its visibility, position, labels, ticks, and range to optimize data visualization.

**Features & Descriptions**

| Feature      | Description                                                                                                                                                 |
| ------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Show**     | Enables or disables the visibility of the Secondary Y-axis. When checked, the axis appears on the chart.                                                    |
| **Inverse**  | Reverses the direction of the axis, displaying values in descending order.                                                                                  |
| **Type**     | Defines the data type for the axis. Options include `value` (numerical), `category` (discrete values), `time` (dates/times), and `log` (logarithmic scale). |
| **Position** | Determines whether the Secondary Y-axis appears on the `left` or `right` side of the chart. Typically, it is placed on the `right`.                         |
| **Name**     | Sets a label for the Secondary Y-axis to provide context for the displayed values.                                                                          |

**Sub-Sections**

**Axis Line**

| Feature         | Description                                                     |
| --------------- | --------------------------------------------------------------- |
| **Show**        | Toggles the visibility of the Secondary Y-axis line.            |
| **Line Color**  | Customizes the color of the axis line.                          |
| **Show Arrows** | Adds arrows at the ends of the axis line to indicate direction. |
| **Line Type**   | Options include `solid`, `dashed`, and `dotted` styles.         |

**Axis Tick**

| Feature              | Description                                                |
| -------------------- | ---------------------------------------------------------- |
| **Show**             | Displays or hides tick marks along the Secondary Y-axis.   |
| **Align with Label** | Ensures tick marks are aligned with corresponding labels.  |
| **Line Color**       | Customizes the color of the tick marks.                    |
| **Line Type**        | Defines the style of the tick marks (solid, dashed, etc.). |

**Axis Label**

| Feature           | Description                                                       |
| ----------------- | ----------------------------------------------------------------- |
| **Show**          | Enables or disables labels along the Secondary Y-axis.            |
| **Rotate**        | Adjusts the rotation angle of axis labels to improve readability. |
| **Color**         | Allows users to change the font color of the labels.              |
| **Size**          | Modifies the font size of the labels.                             |
| **Font Family**   | Selects the font type for labels.                                 |
| **Bold & Italic** | Applies bold or italic formatting to the label text.              |

**Split Line**

| Feature  | Description                                                                                                                                |
| -------- | ------------------------------------------------------------------------------------------------------------------------------------------ |
| **Show** | Toggles the display of grid lines extending from the Secondary Y-axis. These lines help visually separate different sections of the chart. |

**Range**

| Feature       | Description                                                                                                                                                   |
| ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Min & Max** | Allows users to manually define the minimum and maximum values of the Secondary Y-axis. If left empty, the system automatically adjusts based on the dataset. |

This configuration enables effective control over the Secondary Y-Axis, allowing users to display multiple scales in a single chart for enhanced comparative analysis.


---

# 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/secondary-y-axis.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.
