# Bar chart

The Bar Chart portlet allows data to be presented as a bar chart. Users can add multiple series and set colors of choice.

## General

General data is required for all portlets.

[General configuration](https://help.novacuraflow.com/development/flow-portal-2/common-configuration#general)

## Listeners

The portlet can listen to the following events:

* On Filter
* On Row Selection
* On Refresh
* On Point Selection

The portlet can send the following events:

* On Refresh
* On Point Selection

<div align="left"><img src="https://529897662-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LtPTgZOYmpJka4jqs1v%2F-MO2C3Ks_rva744e5enw%2F-MO2DLUG3D1yCuKt_8wp%2Fimage.png?alt=media&#x26;token=e70b232e-0402-4872-b809-cf269d3808b6" alt=""></div>

[Listeners configuration](https://help.novacuraflow.com/development/flow-portal-2/common-configuration#listeners)

## Data

### Data source

The portlet data source configuration enables the portlet to execute specified queries towards the chosen database connector to fetch data, or fetch data from a workflow.

* Database: uses a flow connector to retrieve data from a database
* Workflow: runs a workflow to retrieve data

[Data source configuration](https://help.novacuraflow.com/development/flow-portal-2/common-configuration#database-source)

[Workflow source configuration](https://help.novacuraflow.com/development/flow-portal-2/common-configuration#workflow-source)

### Presentation

* Show tooltip: enables the mouse over tooltip for the chart data points
* Show legend: enables the legend presentation for the chart
* Category column: use the drop-down to select the category the chart should show. This will be displayed on the y-axis.

#### Category column&#x20;

Use the drop-down to select which category the chart should show. This category will be displayed on the y-axis.

#### Data Series

Click *New* to configure the data series.

* Name: the name of the series, will be shown in the legend
* Field column: the data set which is to be shown

## Style

Change the header text color and add a header stripe by configuring style.

[Style configuration](https://help.novacuraflow.com/development/flow-portal-2/common-configuration#style)
