> ## 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)

## function wandb.plot.histogram()

Crée un histogramme à partir d’un tableau W\&B.

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

## Arguments

**table** `wandb.Table`

Le tableau W\&B contenant les données de l’histogramme.

**value** `str`

Le libellé de l’axe des intervalles (axe X).

**title** `str`

Le titre de l’histogramme.

**split\_table** `bool`

Indique si le tableau doit être placé dans une section distincte de l’interface W\&B. Si la valeur est `True`, le tableau s’affiche dans une section nommée « Custom Chart Tables ». Par défaut : `False`.

## Renvoie

`CustomChart` : un objet graphique personnalisé pouvant être consigné dans W\&B. Pour journaliser le graphique, transmettez-le à `wandb.log()`.

## Exemples

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

# Générer des données aléatoires
data = [[i, random.random() + math.sin(i / 10)] for i in range(100)]

# Créer une W&B Table
table = wandb.Table(
    data=data,
    columns=["step", "height"],
)

# Créer un histogramme
histogram = wandb.plot.histogram(
    table,
    value="height",
    title="My Histogram",
)

# Journaliser l’histogramme dans W&B
with wandb.init(...) as run:
    run.log({"histogram-plot1": histogram})
```
