628
Views
11
Comments
Solved
How to add data series inside the data series chart?
Question

Hi everyone,


i want to show the bar chart just like this

how can i build chart like that? how can i add data series inside the data series with datapoint structure?


thanks for advance.

Roman.

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

Meanwhile, I found I have answered this question before :).

2019-09-23 01-59-37
Roman Fal's

Kilian Hekhuis wrote:

Meanwhile, I found I have answered this question before :).

Thanks its work!


2021-08-12 11-00-27
Nordin Ahdi
 
MVP

Hi Roman,

If you want to plot different series, all you have to do is use a different DataSeriesName in your DataPointRecord for each series you append to your DataPointList. This post shows an example.

EDIT: I found this Success article from OutSystems that explains it too.

Regards,

Nordin

2019-09-23 01-59-37
Roman Fal's

Nordin Ahdi wrote:

Hi Roman,

If you want to plot different series, all you have to do is use a different DataSeriesName in your DataPointRecord for each series you append to your DataPointList. This post shows an example.

EDIT: I found this Success article from OutSystems that explains it too.

Regards,

Nordin

Hi Nordin,

currently, my chart is like this.

i want to split one bar like this,

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

@Nordin: Roman wants a stacked column chart, so it's not as simple as the links you posted.

@Roman: I have an example somewhere, I'll post it later.

2021-08-12 11-00-27
Nordin Ahdi
 
MVP

Kilian Hekhuis wrote:

@Nordin: Roman wants a stacked column chart, so it's not as simple as the links you posted.

@Roman: I have an example somewhere, I'll post it later.

Ah yes, I didn't notice that. Glad you can share an example.

Thanks Kilian.


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

Meanwhile, I found I have answered this question before :).

2019-09-23 01-59-37
Roman Fal's

Kilian Hekhuis wrote:

Meanwhile, I found I have answered this question before :).

Thanks its work!


2021-08-12 11-00-27
Nordin Ahdi
 
MVP

Nice :). Thanks for sharing it again!

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

Here's an example. You can view it here.

ChartsMultipleStacks.oml
2020-09-15 13-07-23
Kilian Hekhuis
 
MVP

Good to hear! So basically the two things you need to do is 1) set the chart's stacking type to "Entities.StackingType.Stacked", and 2) specify the stack name in the chart's AdvancedFormat.DataSeriesFormats by specifying the data series name in DataSeriesName, and the stack name as "stack: 'myStack1'" in the DataSeriesJSON (where myStack1 is a name of your chosing, and which should be different for each stack).

2019-09-23 01-59-37
Roman Fal's

Kilian Hekhuis wrote:

Good to hear! So basically the two things you need to do is 1) set the chart's stacking type to "Entities.StackingType.Stacked", and 2) specify the stack name in the chart's AdvancedFormat.DataSeriesFormats by specifying the data series name in DataSeriesName, and the stack name as "stack: 'myStack1'" in the DataSeriesJSON (where myStack1 is a name of your chosing, and which should be different for each stack).

yup, but how we can short the stack? i think its not shoting by stack name...


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

I just answered that question, but then the forum got time-outs and it's gone...

Anyway, the data series are displayed in the order you add them to the DataPoints List. So if you need a particular sort order, you have to add them in that order.

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