14
Views
2
Comments
Solved
[OutSystems Charts] Line chart with two entitities
outsystems-charts
Reactive icon
Forge asset by OutSystems

Hello everone,
I want to make a line chart as you see in the screen shot. But I use two different entities. The documentation isn't enough to understan can you help me how should I arrange datapointlist? if I use one list I can only show one line of one entity. If I add with plus button new value and label area then I could be able to show a dot. I am missing sth. Can any one help me to handle this issue?



Schermafbeelding 2026-01-08 194417.png
Schermafbeelding 2026-01-08 194926.png
2026-01-28 16-57-48
Mihai Melencu
Champion
Solution

Hi,

In the line chart, a line represents a series, and the recommended approach is to prepare a single DataPointList that contains data for all series. 

In your case, this can be done in a Data Action where data is fetched separately from both entities and then merged into a single list using ListAppendAll. Each record in the resulting list represents one data point and includes the value, the date used as the label, and a field that identifies the series .

It is important that the data from both entities uses the same date granularity so the X-axis labels align correctly and the lines are displayed consistently. 

I attached a sample OML to reference for implementation.

Result:


MultipleEntitiesChart.oml
2026-02-04 09-45-28
Ali Yolcu

Thank you for solution Mihai Melencu

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.