Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to create a stacked groups in Apex.

VimalPSFeb 24 2018 — edited Mar 5 2018

Hi All,

I am newbie in oracle apex charts and here i'm stuck with situation where i'm not able to move forward.

I have a cart which displays data for a consecutive months and i have to user the stack chart for displaying the data.

But the data holds different series for all months and the charts should display in different bars(side by side for different series) within same months.

Is there a way to accomplish this..

I'm using APEX - 5.1.2 in oracle DB 11g..

Below pasting the screenshots for reference..

pastedImage_1.pngpastedImage_3.png

SELECT 'AUG-2017' month,

   'ABC - INCIDENTS' task,

   500 effort,

   1 ord

FROM dual

union all

SELECT 'SEP-2017' month,

   'ABC - INCIDENTS' task,

   500 effort,

   1 ord

FROM dual

----------------------------------------

pastedImage_5.pngpastedImage_6.png

SELECT 'AUG-2017' month,

   'ABC - EVENTS' task,

   200 effort,

   2 ord

FROM dual

union all

SELECT 'SEP-2017' month,

   'ABC - EVENTS' task,

   200 effort,

   2 ord

FROM dual

-------------------------------------------------------------

pastedImage_7.pngpastedImage_8.png

SELECT 'AUG-2017' month,

   'DEF- INCIDENTS' task,

   500 effort,

   1 ord

FROM dual

union all

SELECT 'SEP-2017' month,

   'DEF- INCIDENTS' task,

   500 effort,

   1 ord

FROM dual

-------------------------------------

pastedImage_9.pngpastedImage_10.png

SELECT 'AUG-2017' month,

   'DEF - EVENTS' task,

   200 effort,

   2 ord

FROM dual

union all

SELECT 'SEP-2017' month,

   'DEF - EVENTS' task,

   200 effort,

   2 ord

FROM dual

------------

When i'm running it i'm getting this as output.Since it's stacked it'll normally comes like this but what i really want is DEF-INCIDENT and DEF-EVENTS series as new bar adjacent to each other but stacked with it's own series(yellow and orange as next bar but both stacked.)

pastedImage_11.png

Please put your thoughts to achieve this, if there's a way for that.

Your comments will be really appreciated.

Thank You.

This post has been answered by VimalPS on Mar 5 2018
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 2 2018
Added on Feb 24 2018
2 comments
648 views