167
Views
6
Comments
Column Chart with multiple rows for a "Label"
Application Type
Reactive
Service Studio Version
11.53.19 (Build 61407)

My aggregate is taken from an external database. 

For a Label I get different values, as I want to show them in two different charts with different  DataSeriesName. Using Stacked I was assuming, that the charts takes to overall SUM for a label.

Chart 1: 

  • Label = YYYYWW
  • Value = COUNTER, would like to have SUM(COUNTER)
  • DataSeriesName = Flag

Chart 2: 

  • Label = YYYYWW
  • Value = COUNTER, would like to have SUM(COUNTER)
  • DataSeriesName = Prio

In Excel Pivot Tables are supporting this. My hope was, that if I use Entities.StackingType.Stacked it would work, but it doesn't

YYYYWWFlagPrioCOUNTER
2022.50FALSEMajor1
2022.50TRUEMajor1
2022.50FALSETrivial4
2022.50FALSEBlocker2
2022.50FALSECritical1
2022.50FALSEMinor8
2022.50TRUETrivial1
2022.51FALSEMajor4
2022.51TRUEMajor2
2022.51FALSETrivial33
2022.51FALSEBlocker3
2022.51FALSECritical5
2022.51FALSEMinor51
2022.51TRUETrivial47







2020-09-15 13-07-23
Kilian Hekhuis
 
MVP

Hi Jens,

Not exactly sure what your question is. In fact, I'm not sure what you mean: you are talking about two charts, but then you seem to talk about two different series in the same charts?

UserImage.jpg
Jens Vogelgesang

I want to use the data for two different Charts without creating two specialized aggregates.

Reason for that is, to reduce maintenance of the query itself.



and 

It seems, that OutSystems charts does not sum up all the values which for a label.


Having a real Pivot-Chart available would solve many problems. 

I would expect this is a must-have functionality OutSystem should work on.

2020-09-15 13-07-23
Kilian Hekhuis
 
MVP

Well, let's start with getting a misconception out of the way, OutSystems Charts does very little - under the hood it's Highcharts that's used, so if Highcharts doesn't support something, so doesn't OutSystems charts.

That said, Highcharts does support this, using the stackLabels yAxis property. Here's an example I found. It may visually not be exactly what you need, but Highcharts is highly customizable, so no doubt you can tweak it to make it look like you want. Use the AdvancedFormat property of a chart to add these customization options.

2024-03-15 07-22-55
Ashish Kumar Srivastava

Hi Jens Vogelgesang ,

please go with this post https://www.outsystems.com/forums/discussion/59712/y-axis-for-multiple-data-series/


Hope this will solve your problem.


2020-09-15 13-07-23
Kilian Hekhuis
 
MVP

Hi Ashish,

Please read the question before replying! That post has absolutely nothing to do with OPs question!

2023-01-11 05-39-38
Jendale Kim Ramay

Hello OP, if I am understanding your post correctly you want to have 2 Charts with both of them are stacked and have a total be displayed?


Then I would suggest using the OutSystems Charts HighChartsJSON and customize it according to your needs.

I have attached a link on how you can do it.

https://jsfiddle.net/ramayjendale/r7640ysc/14/

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