> ## Documentation Index
> Fetch the complete documentation index at: https://wb-21fd5541-docs-weave-byob-note.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

> メトリクスを可視化し、軸をカスタマイズして、カテゴリデータを棒で比較します。

# 棒グラフ

棒グラフは、縦または横に描画できる長方形の棒でカテゴリデータを表現します。棒グラフを使用すると、メトリクスを可視化し、カテゴリデータを比較し、Runs の軸をカスタマイズできます。ログされたすべての値の長さが 1 の場合、`wandb.Run.log()` ではデフォルトで棒グラフが表示されます。

<Frame>
  <img src="https://mintcdn.com/wb-21fd5541-docs-weave-byob-note/APCX9Qs4RWZGqCVa/images/app_ui/bar_plot.png?fit=max&auto=format&n=APCX9Qs4RWZGqCVa&q=85&s=7ab7c869fe93626446b394ce2bd6d4c6" alt="W&B の箱ひげ図と横棒グラフ" width="1376" height="580" data-path="images/app_ui/bar_plot.png" />
</Frame>

チャート設定を使用すると、表示する Runs の最大数を制限し、任意の設定で Runs をグループ化し、ラベル名を変更できます。

<Frame>
  <img src="https://mintcdn.com/wb-21fd5541-docs-weave-byob-note/APCX9Qs4RWZGqCVa/images/app_ui/bar_plot_custom.png?fit=max&auto=format&n=APCX9Qs4RWZGqCVa&q=85&s=77e988b2f1e4fb30e9d8c336231b284c" alt="カスタマイズした棒グラフ" width="2674" height="1194" data-path="images/app_ui/bar_plot_custom.png" />
</Frame>

<div id="customize-bar-plots">
  ## 棒グラフをカスタマイズする
</div>

**Box** または **Violin** プロットを作成して、複数のサマリー統計を 1 つのチャートタイプにまとめることもできます。

Box または Violin プロットを作成するには、次の手順に従います。

1. Runs table で Runs をグループ化します。
2. Workspace で **Add panel** をクリックします。
3. 標準の **Bar Chart** を追加し、プロットするメトリクスを選択します。
4. **Grouping** タブで **Box** または **Violin** を選択すると、これらのスタイルでプロットできます。

<Frame>
  <img src="https://mintcdn.com/wb-21fd5541-docs-weave-byob-note/APCX9Qs4RWZGqCVa/images/app_ui/bar_plots.gif?s=bf8b7ed3c6417289d91a8ad44001f5fe" alt="グループ化オプションを使用して棒グラフをカスタマイズする" width="800" height="395" data-path="images/app_ui/bar_plots.gif" />
</Frame>
