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!

Creating D3 stacked bar chart fails

MaikRAug 3 2015 — edited Aug 5 2015

Hi @all,

i need to create a stacked bar chart. I use the D3 Bar Chart plugin, that is used in the sample APEX app from oracle.

My test table is as follows:

create table report(

line varchar2(100),

serie varchar2(100),

count number);

insert into report values ('Line A', 'Serie 1', 12);

insert into report values ('Line A', 'Serie 2', 14);

insert into report values ('Line A', 'Serie 3', 16);

insert into report values ('Line B', 'Serie 1', 18);

insert into report values ('Line B', 'Serie 2', 20);

insert into report values ('Line C', 'Serie 3', 22);

My simple stmt for creating the chart is like:

select line, serie, count from report;

The following test works then fine:

Under chart attributes i set following values:

x-values column: LINE

y-values column: COUNT

display: vertical, side by side

multiple series: enabled

series column: SERIE

I get a chart as i want!

pastedImage_0.png

BUT If i switch the display attribute to 'vertical, stacked', then the chart has error in Line C.

pastedImage_1.png

The yellow bar should be between 0 and 22 and not between 38 and 60. It seems, that this is a bug, nor?

I'm using APEX 5.0.1.00.06 and Oracle 11.2.0.1 on Windows 64.

For my own report, that has some grouping functionality, i don't get any chart with stacked display.

I have exported the D3 bar chart plugin from the sample application and import it into my own application.

regards

Maik

This post has been answered by Scott Wesley on Aug 3 2015
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 2 2015
Added on Aug 3 2015
3 comments
1,227 views