> For the complete documentation index, see [llms.txt](https://help.novacuraflow.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.novacuraflow.com/6.12/development/flow-portal-2/portlets/chart-portlets/line-chart.md).

# Line chart

The Line Chart Portlet allows data to be presented as a line chart. It is possible to add multiple series and set colors of choice.

## General

General data is required for all portlets.

[General configuration](/6.12/development/flow-portal-2/portlets/common-configuration.md#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="/files/-M8tYVW9j5tZcQ3KKozz" alt=""></div>

[Listeners configuration](/6.12/development/flow-portal-2/portlets/common-configuration.md#listeners)

## Data

### Data source

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](/6.12/development/flow-portal-2/portlets/common-configuration.md#database-source)

[Workflow source configuration](/6.12/development/flow-portal-2/portlets/common-configuration.md#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 the 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="/files/-M8jkq7M3IzEHELZG_U_" alt=""></div>
{% endtab %}

{% tab title="Data Series" %}

<div align="left"><img src="/files/-M0lesFs7s_y9NiSdcn5" alt=""></div>
{% endtab %}
{% endtabs %}

<div align="left"><img src="/files/-M0lmkPSCVY0rbW4e4-p" alt=""></div>

## Style

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

[Style configuration](/6.12/development/flow-portal-2/portlets/common-configuration.md#style)


---

# 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.novacuraflow.com/6.12/development/flow-portal-2/portlets/chart-portlets/line-chart.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.
