> For the complete documentation index, see [llms.txt](https://docs.inforiver.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.inforiver.com/~/changes/mS6jwvARNLHpKqBa4cT9/working-with-inforiver/8.-paginated-reporting/header-and-footer/charts.md).

# Charts

In the header and footer, you can add all the inline charts such as sparklines, bullets, range plots, dot plots, and other unique charts such as donut charts and progress bars. Let's take a detailed look.&#x20;

## 1. Adding the chart

a) Click on 'Header & footer' in the 'Design' tab.

<figure><img src="https://3062809325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEbkCXCUXmtUq5tcnUtZE%2Fuploads%2FbVywtUiwkqIoDJS9ver9%2Fimage.png?alt=media&amp;token=8f16bb98-9b65-4c6c-9b3c-76c1c011d67b" alt=""><figcaption><p>Editing the header</p></figcaption></figure>

b) Choose 'Chart' from the 'Type' option.

<figure><img src="https://3062809325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEbkCXCUXmtUq5tcnUtZE%2Fuploads%2FMW2NUQIUAg5mB6C2hhi1%2Fimage.png?alt=media&amp;token=323acb3e-e301-40b3-81fa-ee6d8dd3f829" alt=""><figcaption><p>Choosing the chart element</p></figcaption></figure>

c) By default, a donut chart gets inserted based on the data fields added to the report. Here we have a donut chart for the 4 quarters.

<figure><img src="https://3062809325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEbkCXCUXmtUq5tcnUtZE%2Fuploads%2FzuthhEZ1s0QVn5bDqygl%2Fimage.png?alt=media&amp;token=471b95fb-fda0-4b73-a57f-8c0116a16503" alt=""><figcaption><p>Default chart gets inserted</p></figcaption></figure>

d) You can see the customization options present in the 'Customize' tab. Appearance and Legend config are covered in [customization options](#4.-customization-options).

<figure><img src="https://3062809325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEbkCXCUXmtUq5tcnUtZE%2Fuploads%2FTaKmJdUNrJUAAsFotfa9%2Fimage.png?alt=media&amp;token=8384562a-f2dc-4a4f-827f-6ac516eb3d68" alt=""><figcaption><p>Customization options</p></figcaption></figure>

## 2. Data selection

Note that by default, the table is greyed out as shown in the image.

<figure><img src="https://3062809325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEbkCXCUXmtUq5tcnUtZE%2Fuploads%2FiBvhK3wcRu2j4r4zzjla%2Fimage.png?alt=media&amp;token=cbd4f4dc-dd9c-4d63-82f7-d82596d60dbc" alt=""><figcaption><p>Table is greyed out</p></figcaption></figure>

On hovering over the chart, the  data selection button appears.&#x20;

<figure><img src="https://3062809325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEbkCXCUXmtUq5tcnUtZE%2Fuploads%2Fgk01z2Vyom3VsOcHmYqZ%2Fimage.png?alt=media&amp;token=d29f7b26-455a-4975-b81f-8c0058a1400b" alt=""><figcaption><p>Change data icon</p></figcaption></figure>

Click on the change data symbol to open the 'Data Selection' dialog box. The data source used to render the chart can be set using the methods listed below:

&#x20; a) Using data from rows

&#x20; b) Using data from columns

&#x20; c) Manually selecting the cells required for the chart

### **a)  Data from rows**

1. To render the chart using row data, click on the 'Select Rows' dropdown.

<figure><img src="https://3062809325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEbkCXCUXmtUq5tcnUtZE%2Fuploads%2FjV6RZXYmL38dBvJSxUS5%2Fimage.png?alt=media&amp;token=fec37491-d0cb-4963-82dd-09eb4c5303ca" alt=""><figcaption><p>Select rows option</p></figcaption></figure>

2. The 'Select Rows' dialog box opens. You can select the rows that will contribute to rendering the chart.

{% hint style="info" %}
Click on the 'Clear' link to reset and remove all the selected rows
{% endhint %}

<figure><img src="https://3062809325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEbkCXCUXmtUq5tcnUtZE%2Fuploads%2FkrwyiuByxmPf3LEA5T0A%2Fimage.png?alt=media&amp;token=c08e3407-3512-48a3-8bcb-da41dd27735f" alt=""><figcaption><p>Choosing rows to render the chart</p></figcaption></figure>

3. After clicking on 'OK', the selected categories are displayed in the Data Selection dialog box. Click on 'Create' to render the chart.&#x20;

Notice that the rows that are used as data source for the chart have been highlighted.

<figure><img src="https://3062809325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEbkCXCUXmtUq5tcnUtZE%2Fuploads%2FYCBGXi1zMRwMtGt51CyK%2Fimage.png?alt=media&amp;token=b6999850-53a1-47d8-a5da-74679ff84898" alt=""><figcaption><p>Chart rendered using row level data</p></figcaption></figure>

### **b)  Data from columns**

1. To render the chart using column data, click on the 'Select Columns/Measures' dropdown.

<figure><img src="https://3062809325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEbkCXCUXmtUq5tcnUtZE%2Fuploads%2FTzlqx3PocO3amwKKq3Rj%2Fimage.png?alt=media&amp;token=4400e674-d476-4466-bf41-4f4a487d4869" alt=""><figcaption></figcaption></figure>

2. Select the columns and/or measures that will be used to render the chart.

{% hint style="info" %}
Click on 'Clear' to reset and remove the columns that have been selected.
{% endhint %}

<figure><img src="https://3062809325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEbkCXCUXmtUq5tcnUtZE%2Fuploads%2F6xk3v94toLFKUclUQ5kV%2Fimage.png?alt=media&amp;token=1a812c67-654e-4547-bc08-4b534a245a62" alt=""><figcaption><p>Columns and measures selected to render the chart</p></figcaption></figure>

After clicking on 'OK', the columns that are selected are displayed in the Data Selection dialog box. Click on 'Create' to render the chart.

Notice that the columns that are used as data source for the chart have been highlighted.

<figure><img src="https://3062809325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEbkCXCUXmtUq5tcnUtZE%2Fuploads%2FZLZy64P8rCT6VnmPqmrM%2Fimage.png?alt=media&amp;token=be399aab-8f37-488c-98a3-2ad67c667e83" alt=""><figcaption><p>Chart rendered using columns or measures</p></figcaption></figure>

### &#x20;&#x63;**) Manual data selection**

1. To render the chart using manual data selection, click on the 'Manual Selection' link.

<figure><img src="https://3062809325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEbkCXCUXmtUq5tcnUtZE%2Fuploads%2F1THrnfJODe7AkikCDcth%2Fimage.png?alt=media&amp;token=8a14c468-ac21-451c-90bc-89615ade45d4" alt=""><figcaption><p>Manual selection option</p></figcaption></figure>

2\. From the grid, select the cells to be used as data source for the chart, the selection is immediately reflected in the header chart.

<figure><img src="https://3062809325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEbkCXCUXmtUq5tcnUtZE%2Fuploads%2FpSHT2mKJ45y40EUusskQ%2Fimage.png?alt=media&amp;token=6cf9292f-2fad-46c9-8e39-ae84da86a84a" alt=""><figcaption></figcaption></figure>

## 3. Chart types

There are a number of chart types like Donut, Sparkline, Bullet etc. that can be inserted in the header. Let's see how to add or change them.&#x20;

a) By default, a donut chart is added to the header if the Chart option is selected. This can be changed from the Data Selection dialog box.

{% hint style="warning" %}
Some of the variants are not shown here but they can be accessed from the toolbar.
{% endhint %}

<figure><img src="https://3062809325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEbkCXCUXmtUq5tcnUtZE%2Fuploads%2FnFRaN3pIFoCfsiyffJjD%2Fimage.png?alt=media&amp;token=5f3fab9d-908e-4f48-8289-3cdc067f0c40" alt=""><figcaption><p>Chart type selection</p></figcaption></figure>

The donut chart has now been changed to a Sparkline chart.

<figure><img src="https://3062809325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEbkCXCUXmtUq5tcnUtZE%2Fuploads%2FzMlBkqQ9RKEig3vrB2gW%2Fimage.png?alt=media&amp;token=d685841a-df93-494f-8472-827e93a75ca2" alt=""><figcaption><p>Chart updated to Sparkline</p></figcaption></figure>

b) To easily browse the chart types and variants available, click on the 'Right arrow' in the cell as shown in the image. Notice that in the toolbar it says 'SparkLine'.&#x20;

<figure><img src="https://3062809325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEbkCXCUXmtUq5tcnUtZE%2Fuploads%2FM4wfdYOPbbcW468NY89j%2Fimage.png?alt=media&amp;token=413a0037-8b53-4cdc-a6da-7e8d359bc2e3" alt=""><figcaption><p>Browsing chart types</p></figcaption></figure>

The chart has now been changed to a bar chart.

<figure><img src="https://3062809325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEbkCXCUXmtUq5tcnUtZE%2Fuploads%2F8WECaFSNmmJm2gN45caX%2Fimage.png?alt=media&amp;token=4efa1f54-3768-4d60-bfa8-816f829a4cbc" alt=""><figcaption><p>Changing the chart to a bar chart</p></figcaption></figure>

c) You can also view and select all the supported chart types and their variants from the toolbar as shown in the image below.

<figure><img src="https://3062809325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEbkCXCUXmtUq5tcnUtZE%2Fuploads%2Fex9vixVHbwcZZHdlLvVo%2Fimage.png?alt=media&amp;token=eb73db6d-42dc-483f-a815-bb4a538e2843" alt=""><figcaption><p>Selecting the chart from the toolbar</p></figcaption></figure>

d) In case two data points are selected, you can also use variants of the progress bar such as conditional bar, angular bar and donut bar.

<figure><img src="https://3062809325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEbkCXCUXmtUq5tcnUtZE%2Fuploads%2FlQSVDbDhgz50A8RcRikS%2Fimage.png?alt=media&amp;token=98e18ad1-7905-4ebb-af8c-6b0692e469fd" alt=""><figcaption><p>Progress bar </p></figcaption></figure>

## 4. Customization options

Most of the customization options are already covered in [working with charts](/~/changes/mS6jwvARNLHpKqBa4cT9/working-with-inforiver/6.-working-with-charts.md). The customization options unique to header charts are covered here.&#x20;

### a) All chart types

#### Legend config

By default, the legend is shown on the right of the chart, you can change the position to the left or turn it off. To change the legend, click on the 'Legend config' button in the Customize ribbon.&#x20;

<figure><img src="https://3062809325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEbkCXCUXmtUq5tcnUtZE%2Fuploads%2FuB6jkcINGDVpEfJcgEgi%2Fimage.png?alt=media&amp;token=c867203d-5eec-4dba-b1fd-8dc83723daba" alt=""><figcaption><p>Legend config for header charts</p></figcaption></figure>

When the legend is turned off, the chart will be rendered as shown in the image below.

<figure><img src="https://3062809325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEbkCXCUXmtUq5tcnUtZE%2Fuploads%2FWqktQ7nWCafPe7TUIBu7%2Fimage.png?alt=media&amp;token=436b5aa0-235d-4cad-bf2e-752bdd573a87" alt=""><figcaption><p>Legend disabled</p></figcaption></figure>

### b) Styling donut chart

The appearance of the donut chart can be customized by clicking on the 'Appearance' option. You can see the dialog box shown in the image where you can select the color for each arc, arc size and apply a gradient.

<figure><img src="https://3062809325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEbkCXCUXmtUq5tcnUtZE%2Fuploads%2FqntsU2iYIdEjyTKDvD5f%2Fimage.png?alt=media&amp;token=2bfbc2a2-148a-4b8a-841d-609fe70c421c" alt=""><figcaption><p>Appearance customizations</p></figcaption></figure>

* When a **gradient** is applied, you can select the gradient color and the chart gets updated as shown.

<figure><img src="https://3062809325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEbkCXCUXmtUq5tcnUtZE%2Fuploads%2FPL5MWcr96EramTZ7Lb8w%2Fimage.png?alt=media&amp;token=39518105-f768-42d3-b5e9-2ee381467262" alt=""><figcaption><p>Gradient applied</p></figcaption></figure>

* When there are more than 5 categories selected, the '**Enable others**' option is activated. Note that even though six regions were selected, only five are displayed in the chart. When the 'Enable others' property is set, you can see a segment in the donut called 'Others' which visualizes the sum of the values apart from the top 5 categories. That is, if there are 10 categories added, the last 5 categories will be consolidated and shown as 'Others'.

<figure><img src="https://3062809325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEbkCXCUXmtUq5tcnUtZE%2Fuploads%2Fe6iji2oC7OrQpSVH2ImK%2Fimage.png?alt=media&amp;token=da38e3e8-851d-43f4-bad1-9e161d88a340" alt=""><figcaption><p>Enable others</p></figcaption></figure>

* The name 'Others' can be modified by clicking on the 'Pencil' icon and entering a relevant name in the text field.

<figure><img src="https://3062809325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEbkCXCUXmtUq5tcnUtZE%2Fuploads%2F3skFTALi14Vg8e4JFpZS%2Fimage.png?alt=media&amp;token=18ee64fd-985f-4f49-95f2-f6994444d9a8" alt=""><figcaption><p>Customizing the 'Others' category</p></figcaption></figure>

* &#x20;The **arc size** can be customized by using the 'Arc size' dropdown. The available options are Small, Medium, Large and Extra large.

<figure><img src="https://3062809325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEbkCXCUXmtUq5tcnUtZE%2Fuploads%2FHtBN9UOZ9pusKgZUrrcB%2Fimage.png?alt=media&amp;token=f9658b05-baf5-49bb-a5af-5dc3eaf99910" alt=""><figcaption><p>Changing the arc size</p></figcaption></figure>

### c) Styling progress bars

Progress bar appearance can be customized as shown below. You can define positive and negative colors using a color picker.

<figure><img src="https://3062809325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEbkCXCUXmtUq5tcnUtZE%2Fuploads%2FTr7Og4ZDZVyYMYymnE3w%2Fimage.png?alt=media&amp;token=3c18ec93-4808-4402-898c-2ffa8f1a9a69" alt=""><figcaption><p>Setting the color scheme for progress bars</p></figcaption></figure>

### d) Styling sparklines

In the sparkline customization toolbar, explanations for [Appearance](/~/changes/mS6jwvARNLHpKqBa4cT9/working-with-inforiver/6.-working-with-charts/sparkline-charts.md#viii-appearance), [Null display](/~/changes/mS6jwvARNLHpKqBa4cT9/working-with-inforiver/6.-working-with-charts/sparkline-charts.md#vi-null-display), [Marker](/~/changes/mS6jwvARNLHpKqBa4cT9/working-with-inforiver/6.-working-with-charts/sparkline-charts.md#ii-marker) and [Show label](/~/changes/mS6jwvARNLHpKqBa4cT9/working-with-inforiver/6.-working-with-charts/sparkline-charts.md#viii-show-label) are covered in the '[Working with charts](/~/changes/mS6jwvARNLHpKqBa4cT9/working-with-inforiver/6.-working-with-charts.md)' section.

Let's look at the 'Data config' option.

i) Select the row grand total and choose the sparkline chart type with the area spline variant. You can see the sparkline chart in the header as shown below.&#x20;

<figure><img src="https://3062809325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEbkCXCUXmtUq5tcnUtZE%2Fuploads%2Fmrn48QDAlwhxHaBKWlqw%2Fimage.png?alt=media&amp;token=88cf02c0-a168-4124-8631-92ae3ad0f322" alt=""><figcaption><p>Sparkline on selecting a row</p></figcaption></figure>

ii) Click on 'Data config'. In the dialog box, you can see that all the measures are selected. Let's display only the Unit Price measure in the header. Uncheck the other checkboxes. Select a different color using the color picker if needed. Notice how the chart gets updated.&#x20;

<figure><img src="https://3062809325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEbkCXCUXmtUq5tcnUtZE%2Fuploads%2F4MEZc6s2EGwrQmto2P9Z%2Fimage.png?alt=media&amp;token=7b42e438-7f33-4db9-9a66-8679ab0b5861" alt=""><figcaption><p>Selecting measures and setting the chart color</p></figcaption></figure>

In the next section, we'll be covering adding [KPI cards](/~/changes/mS6jwvARNLHpKqBa4cT9/working-with-inforiver/8.-paginated-reporting/header-and-footer/kpi-cards.md).


---

# 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://docs.inforiver.com/~/changes/mS6jwvARNLHpKqBa4cT9/working-with-inforiver/8.-paginated-reporting/header-and-footer/charts.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.
