52
Views
5
Comments
Solved
Outsystems Chart Stacked Bar bug?
Application Type
Reactive
Service Studio Version
11.54.62 (Build 63330)

Hello.... I stumbled into this OutSystems Chart examples while looking for solution to my stacked bar chart : https://charts.outsystems.com/components/chart-types/bar-chart.

When looking into it, I found something interesting..

This is the original result from the sample..

When I delete the data (Finance: 111), the chart become like this.

You can see that it looks like  the missing part is from 'sales', not 'finance'. but actually it's not missing, but it 'moved' to the other group/label.

The Sales data moved to the Marketing (I mark with the number 1).

The Marketing moved to the IT (no 2), IT moved to the Human Resource (no 3), Human Resource moved to the Finance (no 4).

So this bar chart become invalid, it didn't display the correct data.

Does anyone ever encounter this issue?  

2020-08-05 08-52-58
Ruben Goncalves
Solution

Hi @Christian B Susanto and @Dorine Boudry!

Hope you're doing well.

I looked into this, and looks like the xAxis "ValuesType" is wrongly set (possibly using the default value).

If you change the xAxis property "ValuesType" to "Category":

And that should display the data in the correct way:


If you have any question let me know.
Cheers,
RG

2021-09-06 15-09-53
Dorine Boudry
 
MVP

Hi @Christian B Susanto ,

yes this is a bug.

It was introduced a year ago with the new v3.0 version of charts.  

See this and this post, where I already reported it.

You can do one of 2 things : 

  • make sure a carthesian product of label x series is in the datapointlist, with a value of 0 for the ones you don't want to show (this will not work for line charts, your line will dip)
  • revert back to using the v1 of charts (either going back to a version of the module from before may 2023 or by using the legacy_v1 objects in the latest module.

Dorine

2021-09-06 15-09-53
Dorine Boudry
 
MVP

@Gonçalo Martins ,

Adding an  oml demonstrating the difference between v1 and v3.

Turns out that even in v1, this worked incorrect for line charts.

Dorine

QDR_IsStackedChartSolved.oml
2025-08-07 02-38-35
Christian B Susanto

Thanks @Dorine Boudry . This solves my problem.

2020-08-05 08-52-58
Ruben Goncalves
Solution

Hi @Christian B Susanto and @Dorine Boudry!

Hope you're doing well.

I looked into this, and looks like the xAxis "ValuesType" is wrongly set (possibly using the default value).

If you change the xAxis property "ValuesType" to "Category":

And that should display the data in the correct way:


If you have any question let me know.
Cheers,
RG

2025-08-07 02-38-35
Christian B Susanto

Hi RG.... tried this and worked. thanks..

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