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!

Apex Box Plot Chart: X Axis won't honor sql order by

KateMPerthMar 29 2019 — edited Apr 1 2019

Hi All,

I'm creating a box plot chart in Apex to replace my old candlestick anychart.

I am using Apex 18.2.0.00.12 and Oracle version 18.3.

My original candlestick chart has a specific order by for the X axis:

pastedImage_13.png

However my new Box Plot chart won't honor the order by clause in the query and shows the values alphabetically:

pastedImage_14.png

Is there some setting I'm missing to stop this sorting alphabetically?

Here's code to create a box plot for testing:

select label,

   value

from (select 'EART' label, 10 value

  from dual

  union all 

  select 'FLRG' label, 15 value

  from dual

  union all 

  select 'WLODG' label, 10 value

  from dual

  union all 

  select 'WALLG' label, 10 value

  from dual

  union all 

  select 'RFCVG' label, 10 value

  from dual

  union all 

  select 'FIXI' label, 10 value

  from dual

  union all 

  select 'CABI' label, 10 value

  from dual

  union all 

  select 'PCI1' label, 10 value

  from dual

  union all 

  select 'PCI2' label, 10 value

  from dual

  )

order by case when label = 'EART' then '1'

         when label = 'FLRG' then '2'

         when label = 'WLODG' then '3'

         when label = 'WALLG' then '4'

         when label = 'RFCVG' then '5'

         when label = 'FIXI' then '6'

         when label = 'CABI' then '7'

         when label = 'PCI1' then '8'

         when label = 'PCI2' then '9'

         end 

Thanks,

Kate

Comments
Post Details
Added on Mar 29 2019
5 comments
2,279 views