# Column chart

The Column Chart portlet allows data to be presented as a column 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-M8tVgYSgOZ1oZZhCG6S%2F-M8tYVW9j5tZcQ3KKozz%2Fimage.png?alt=media&#x26;token=d6077086-eb46-4fb4-94d9-e347d63186ad" 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 x-axis.

#### Category column&#x20;

Use the drop-down to select which category the chart should show. This category will be displayed on the x-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

{% tabs %}
{% tab title="Category column" %}

<div align="left"><img src="https://529897662-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LtPTgZOYmpJka4jqs1v%2F-M8jkz_InqOj17sC5q01%2F-M8jlUYU8tgLkogper6X%2Fimage.png?alt=media&#x26;token=f7d2da06-6ee6-4bca-ae5b-d22ee3d17810" alt=""></div>
{% endtab %}

{% tab title="Data Series" %}

<div align="left"><img src="https://529897662-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LtPTgZOYmpJka4jqs1v%2F-M0le5j_gl9DF2QmJZUb%2F-M0lesFs7s_y9NiSdcn5%2Fimage.png?alt=media&#x26;token=de026e54-0c1e-4448-a7e8-6be74af8bafe" alt=""></div>
{% endtab %}
{% endtabs %}

<div align="left"><img src="https://529897662-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LtPTgZOYmpJka4jqs1v%2F-M0le5j_gl9DF2QmJZUb%2F-M0liVpORY9y7iKWFGyY%2Fimage.png?alt=media&#x26;token=24feb990-c0b7-49dc-9efa-b7590f2feb02" alt=""></div>

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