> ## Documentation Index
> Fetch the complete documentation index at: https://wb-21fd5541-dbrian-docs-serverless-training-quickstart.mintlify.site/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-dbrian-docs-serverless-training-quickstart/-UuhgDsvXhu_LnTE/images/app_ui/bar_plot.png?fit=max&auto=format&n=-UuhgDsvXhu_LnTE&q=85&s=b24ae4cb7348f95a9483649e7b4ff94c" 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-dbrian-docs-serverless-training-quickstart/-UuhgDsvXhu_LnTE/images/app_ui/bar_plot_custom.png?fit=max&auto=format&n=-UuhgDsvXhu_LnTE&q=85&s=f9bec443a51b734c5e65b49971ad8026" 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 Plot** or **Violin** plots to combine many summary statistics into one chart type, if you group your runs.

To create a box or violin plot:

1. [Group your runs in the runs table](/models/runs/grouping), or enable grouping in the panel.
2. In the workspace, click **Add panel**, then choose **Bar Chart**.
3. On the **Data** tab, use the **Metric** selector to choose your summary metric.
4. On the **Grouping** tab, in the **Style** control, choose **Box Plot** or **Violin**.

If you do not see the **Style** control or the **Box Plot** and **Violin** options, your runs are not grouped. Group your runs and the options appear.

<Frame>
  <img src="https://mintcdn.com/wb-21fd5541-dbrian-docs-serverless-training-quickstart/-UuhgDsvXhu_LnTE/images/app_ui/bar_plots.gif?s=6c204ff05aaead71bc0238c08b60bac8" alt="Customizing a bar plot with grouping options" width="800" height="395" data-path="images/app_ui/bar_plots.gif" />
</Frame>
