AnyChartPluginforOracleAPEX是否支持Sunburst或TreeMap图表?
创始人
2024-08-22 10:00:11
0

AnyChart Plugin for Oracle APEX可以支持Sunburst和TreeMap图表。例如,以下代码可以在Oracle APEX中创建TreeMap图表。

首先,在Oracle APEX中安装AnyChart插件。接下来,在页面中创建一个区域,然后在区域属性中添加以下样式表:

#container {
  width: 100%;
  height: 500px;
}

接下来,在区域中添加动态内容,类型选择为“插件”。在插件属性中,添加以下JavaScript代码:

$.getJSON( "treemap_data.json", function( data ) {
  anychart.onDocumentReady(function () {

    var chart = anychart.treeMap(data, "as-tree");

    chart.title("Sales by Product, Modeled by Order Date");

    chart.container("container");

    chart.draw();
  });
});

最后,还需要添加一个JSON文件,以提供绘制图表所需的数据。在这种情况下,文件名为“treemap_data.json”。以下是一个示例JSON文件:

[
  {
    "id": "100",
    "name": "Product A",
    "parent": "",
    "value": 4000
  },
  {
    "id": "101",
    "name": "Product B",
    "parent": "",
    "value": 3200
  },
  {
    "id": "110",
    "name": "Category 1",
    "parent": "100",
    "value": 2000
  },
  {
    "id": "111",
    "name": "Category 2",
    "parent": "100",
    "value": 2000
  },
  {
    "id": "112",
    "name": "Category A1",
    "parent": "110",
    "value": 1000
  },
  {
    "id": "113",
    "name": "Category A2",
    "parent": "110",
    "value": 1000
  },
  {
    "id": "114",
    "name": "Category B1",
    "parent": "111",
    "value": 1000
  },
  {
    "id": "115",
    "name": "Category B2",
    "parent": "111",
    "value": 1000
  },
  {
    "id": "201",
    "name": "Product C",
    "parent": "",
    "value": 2500
  }
]

类似地,也可以使用

相关内容

热门资讯

详情透视!pokemmo辅助脚... 详情透视!pokemmo辅助脚本!真是存在有辅助教程(有挂秘籍)-哔哩哔哩1、不需要AI权限,帮助你...
总结透视!aapoker发牌逻... 总结透视!aapoker发牌逻辑,hhpoker透视脚本下载,窍门教程(真实有挂)-哔哩哔哩1)hh...
了解透视!xpoker辅助助手... 了解透视!xpoker辅助助手!都是真的有辅助攻略(有挂总结)-哔哩哔哩1、完成xpoker辅助助手...
曝光透视!黑侠破解wepoke... 曝光透视!黑侠破解wepoker,xpoker辅助怎么用,项目教程(有挂方略)-哔哩哔哩1、xpok...
专业透视!wepoker轻量版... 专业透视!wepoker轻量版透视方法,wepoker透视脚本免费下载,绝活儿教程(有挂教学)-哔哩...
总结透视!约局吧开挂神器是真的... 总结透视!约局吧开挂神器是真的吗!一直是有辅助软件(确实有挂)-哔哩哔哩;1、约局吧开挂神器是真的吗...
有挂透视!hhpoker到底可... 有挂透视!hhpoker到底可以作必弊吗,aa poker辅助包,项目教程(真的有挂)-哔哩哔哩1、...
普及透视!pokemmo免费脚... 普及透视!pokemmo免费脚本!总是一直总是有辅助教程(有挂秘笈)-哔哩哔哩所有人都在同一条线上,...
有挂透视!wepoker辅助透... 有挂透视!wepoker辅助透视,aapoker辅助怎么用,诀窍教程(有挂规律)-哔哩哔哩1)aap...
关于透视!哈糖大菠萝有没有挂!... 关于透视!哈糖大菠萝有没有挂!原来是有辅助工具(真的有挂)-哔哩哔哩1、不需要AI权限,帮助你快速的...