> ## Documentation Index
> Fetch the complete documentation index at: https://docs.usedatabrain.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Axis Charts (Line, Bar, Stack, Row, Area, Stepped)

> Set up Line, Bar, Stack, Row, Area, and Stepped charts with dimensions and measures.

Axis charts share the same setup: a **horizontal axis** (X-axis), a **vertical axis** (Y-axis), and optional **Switch X Axis** / **Switch Y Axis** to change which columns are used.

## Chart Types

| Chart            | Use case                                        |
| ---------------- | ----------------------------------------------- |
| **Line**         | Trends over time or categories                  |
| **Stepped**      | Step-style line (e.g., cumulative values)       |
| **Bar**          | Vertical bars; compare categories               |
| **Stack**        | Stacked vertical bars; compare parts of a whole |
| **Row**          | Horizontal bars; many categories or long labels |
| **Area**         | Filled area under a line                        |
| **Stacked Area** | Stacked areas; composition over time            |

## Data Requirements

* At least one **dimension** (e.g., category, date, region)
* At least one **measure** (e.g., SUM, COUNT, AVG)
* Drag columns into **Dimensions** and **Measures** when creating the metric

## How to Set Up

1. Create or edit a metric. Add dimensions and measures from your table.
2. Click the **Charts** icon and choose **Line**, **Bar**, **Stack**, **Row**, **Area**, or **Stepped**.
3. Click the **Settings** icon and open the **Chart types** tab, then **Chart properties**.
4. Under **Required Axis**:
   * **Horizontal Axis**: Select the dimension (or measure) for the X-axis.
   * **Vertical Axis**: Select one or more measures for the Y-axis.
5. For **Row** and **Bullet** charts, the labels are **Vertical Axis** (Y) and **Horizontal Axis** (X) because the bars are horizontal.

## Switch X Axis / Switch Y Axis

On the metric card or in full-screen view, you can use:

* **Switch X Axis** — Change the horizontal axis (requires multiple dimensions in your metric).
* **Switch Y Axis** — Change the measure(s) on the vertical axis (requires multiple measures).

These toggles appear when the **End user measures & dimensions** or **Switch X Axis** / **Switch Y Axis** actions are enabled in **Appearance & Actions**.

## Appearance Options

Use the **Appearance** tab in **Settings** to adjust:

* Bar width, top radius, bottom radius (Bar, Stack)
* Label position, legend, colors, margins
* Number format, prefix, suffix

See [Chart-Specific Appearance Options](/guides/visualizations-actions-and-appearance/chart-appearance/chart-specific-appearance-options) for details.
