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 specifically set color box for D3 Collapsible Tree Chart Apex 5.0

myluismOct 20 2016 — edited Oct 21 2016

Hi all.

I'm using Apex 5.0 and plan to use the D3 Collapsible Tree Chart plugin for a business requirement. However one thing i need to be able to handle is to set the color box o infobox based on a value. So for example if a value from some column is less then 30, i'd like the box on red, more than 30 but less than 60, yellow and so on.

I hve posted similar threads like these but haven't got the time to put it on Apex yet.

I suppose this is possible, but don't know exactly how to do it.

Looking at the query:

select empno as ID,

  mgr   as PARENT_ID,

  ename as LABEL,

  job   as COLORVALUE,

  sal   as SIZEVALUE,

  null  as LINK,

  ename as INFOSTRING

from eba_demo_chart_emp

where sal <= :P16_SALARY

The color value seems to derived Job on this particular case, I'd like any node to have a color regardless of the hierarchy. In this case, if i understood well, all jobs would have the same color.

Thanks in advance!!!!.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 18 2016
Added on Oct 20 2016
2 comments
591 views