> For the complete documentation index, see [llms.txt](https://help.connected.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.connected.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="/files/LtAnjdQrh9DjHnFMkeCk" 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="/files/GlGYEZaK4RUveN9PzAhn" 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="/files/JofggtYvBp6KxSopsobo" 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="/files/ZeR5Ig76KFx6Eyi4BNAR" 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="/files/fWBf8wgX316RIG1fWE2v" 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="/files/EWkWd8efFnKyh1MITuSK" 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
