> ## Documentation Index
> Fetch the complete documentation index at: https://wb-21fd5541-docs-1917.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 which can be plotted vertically or horizontally. Bar plots show up by default with `wandb.Run.log()` when all logged values are of length one.

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

Customize with chart settings to limit max runs to show, group runs by any config and rename labels.

<Frame>
  <img src="https://mintcdn.com/wb-21fd5541-docs-1917/CB9tJSsSFnrt6bwh/images/app_ui/bar_plot_custom.png?fit=max&auto=format&n=CB9tJSsSFnrt6bwh&q=85&s=29756670a261728200c3c71dd23e2a04" 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.

1. Group runs via runs table.
2. Click 'Add panel' in the workspace.
3. Add a standard 'Bar Chart' and select the metric to plot.
4. Under the 'Grouping' tab, pick 'box plot' or 'Violin', etc. to plot either of these styles.

<Frame>
  <img src="https://mintcdn.com/wb-21fd5541-docs-1917/CB9tJSsSFnrt6bwh/images/app_ui/bar_plots.gif?s=7308c8297c8a6f8349bfa47ab90394e0" alt="Customize Bar Plots" width="800" height="395" data-path="images/app_ui/bar_plots.gif" />
</Frame>
