> For the complete documentation index, see [llms.txt](https://help.bioinsight.illumina.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.bioinsight.illumina.com/icm/analyses/analysis-functionality/data-viewer/histograms.md).

# Histograms

A histogram is a plot that summarizes the underlying frequency of a set of data with the variable of interest on one axis and the frequency distribution of that variable in the other axis. Histogram can be plotted on continuous or categorical variable.

From a data viewer session, click on *New plot > Bar chart* <img src="https://580316046-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWMxqQAMFOJtu98OBk9KN%2Fuploads%2Fgit-blob-137ea2b8a04bd1a3fcc8e2040ad7746d28606b92%2Fimage%20(288).png?alt=media" alt="" data-size="line"> then select a data node of interest and the content data, which can be a feature or attribute in the data node .

<div align="left"><figure><img src="https://580316046-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWMxqQAMFOJtu98OBk9KN%2Fuploads%2Fgit-blob-ca0a3ade96a3be18ae777a5680e5b92c53b52b15%2Fimage%20(289).png?alt=media" alt=""><figcaption></figcaption></figure></div>

If the content is a numeric, the X-axis in the histogram will display the value of the variable, Y-axis is the frequency of the values.

<figure><img src="https://580316046-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWMxqQAMFOJtu98OBk9KN%2Fuploads%2Fgit-blob-82839619797c111c8b9cac4a18574900e003de7c%2Fimage%20(290).png?alt=media" alt=""><figcaption></figcaption></figure>

Change the data displayed on the histogram by using the *Configure > Axes* menu and selecting the desired variable to display.

<figure><img src="https://580316046-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWMxqQAMFOJtu98OBk9KN%2Fuploads%2Fgit-blob-5c3b36043118608262543c3cb256f226f3c6bd6b%2Fimage%20(291).png?alt=media" alt=""><figcaption></figcaption></figure>

Use the "**Sort by**" function to sort the plot. The default sorting is by Value on the x-axis and this default setting is sorted in ascending order. Users have the option to change that by changing the Default to value or frequency in the sort option.

Users can color the histograms by a categorical attribute using the **Style > Color** by function

<div align="left"><figure><img src="https://580316046-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWMxqQAMFOJtu98OBk9KN%2Fuploads%2Fgit-blob-38d85545840575fd06e97b376e3134bb165e10b0%2Fimage%20(292).png?alt=media" alt=""><figcaption></figcaption></figure></div>

The bars in the histogram can be configured as *Stacked* or not. When the stacked is turned off, the bars will be split into different group at each range.

<figure><img src="https://580316046-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWMxqQAMFOJtu98OBk9KN%2Fuploads%2Fgit-blob-27228851910baf0c962d99185f220521f208f4c2%2Fimage%20(294).png?alt=media" alt=""><figcaption></figcaption></figure>

Users also have the option to bin by either Count or Size. When binned by Count, the user specifies the number of bins for the data and the distribution is fit into the specified number of bins.

When binned by Size, the user specifies the number of items in the bin (size of a bin). This is used to calculate the number of bins required for the data. Data below is binned by Size.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.bioinsight.illumina.com/icm/analyses/analysis-functionality/data-viewer/histograms.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
