【发布时间】:2021-04-11 03:51:30
【问题描述】:
我想用 apex-d3-organization-chart 插件创建一个组织结构图。 我添加了这个插件,然后我创建了一个页面并插入了一个区域并将其更改为这个插件。 在那个区域的源码部分已经写了这段代码:
SELECT
/* positive number id of the element (should start with 1 or higher) */
ROWNUM AS ID,
/* positive number id of the parent (top parent should be 0) */
CASE
WHEN ROWNUM <= 1 THEN 0
WHEN ROWNUM <= 4 THEN 1
ELSE ROUND(ROWNUM / 4)
END AS PARENT_ID,
/* name of the item */
'Item '
|| ROWNUM AS NAME,
/* tooltip for the item */
'This is item '
|| ROWNUM AS TOOLTIP,
/* link of the item (is only used when is leaf) */
'https://github.com/RonnyWeiss' AS LINK,
/* color of the item */
DECODE(ROWNUM, 1, 'rgba(192,0,15,1)', NULL) AS COLOR
FROM DUAL
CONNECT BY ROWNUM <= 30
现在我想改变它并使用我的桌子。 我该怎么做?
【问题讨论】:
标签: oracle charts oracle-apex