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

# histogram()

[View source](https://github.com/wandb/wandb/blob/main/wandb/plot/histogram.py#L12)

## 함수 wandb.plot.histogram()

W\&B table에서 히스토그램 차트를 생성합니다.

```python theme={"system"}
table: 'wandb.Table',
value: 'str',
title: 'str' = '',
split_table: 'bool' = False
```

## 인수

**table** `wandb.Table`

히스토그램 데이터가 포함된 W\&B Table입니다.

**value** `str`

bin 축(X-axis)의 레이블입니다.

**title** `str`

히스토그램 플롯의 제목입니다.

**split\_table** `bool`

table을 W\&B UI에서 별도의 section으로 분할할지 여부입니다. `True`인 경우, table은 "Custom Chart Tables"라는 이름의 section에 표시됩니다. Default는 `False`입니다.

## 반환값

`CustomChart`: W\&B에 로깅할 수 있는 맞춤형 차트 객체입니다. 차트를 로깅하려면 `wandb.log()`에 전달하세요.

## 예시

```python theme={"system"}
import math
import random
import wandb

# 랜덤 데이터 생성
data = [[i, random.random() + math.sin(i / 10)] for i in range(100)]

# W&B Table 생성
table = wandb.Table(
    data=data,
    columns=["step", "height"],
)

# 히스토그램 플롯 생성
histogram = wandb.plot.histogram(
    table,
    value="height",
    title="My Histogram",
)

# 히스토그램 플롯을 W&B에 로깅
with wandb.init(...) as run:
    run.log({"histogram-plot1": histogram})
```
