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

> Visualize metrics, customize axes, and compare categorical data as bars.

# Bar plots

A bar plot presents categorical data with rectangular bars that you can plot vertically or horizontally. Use bar plots to visualize metrics, compare categorical data, and customize axes for your runs. Bar plots appear by default with `wandb.Run.log()` when all logged values are of length one.

<Frame>
  <img src="https://mintcdn.com/wb-21fd5541/ZDqxXQYvQVF43fU1/images/app_ui/bar_plot.png?fit=max&auto=format&n=ZDqxXQYvQVF43fU1&q=85&s=8bd5ac92c15450ebc1a47b4684e6ab67" alt="Box and horizontal bar plots in W&B" width="1376" height="580" data-path="images/app_ui/bar_plot.png" />
</Frame>

Use chart settings to limit the maximum number of runs shown, group runs by any config, and rename labels.

<Frame>
  <img src="https://mintcdn.com/wb-21fd5541/ZDqxXQYvQVF43fU1/images/app_ui/bar_plot_custom.png?fit=max&auto=format&n=ZDqxXQYvQVF43fU1&q=85&s=a2f9a1b60502bfcb6b400617dad8fa8c" alt="Customized bar plot" width="2674" height="1194" data-path="images/app_ui/bar_plot_custom.png" />
</Frame>

## Customize bar plots

You can also create **Box** or **Violin** plots to combine many summary statistics into one chart type.

To create a box or violin plot:

1. Group runs through the runs table.
2. In the workspace, click **Add panel**.
3. Add a standard **Bar Chart** and select the metric to plot.
4. Under the **Grouping** tab, pick **Box** or **Violin** to plot either of these styles.

<Frame>
  <img src="https://mintcdn.com/wb-21fd5541/ZDqxXQYvQVF43fU1/images/app_ui/bar_plots.gif?s=216388a6ac06020687f8030edde0330b" alt="Customizing a bar plot with grouping options" width="800" height="395" data-path="images/app_ui/bar_plots.gif" />
</Frame>
