bundle-layout

Bundle layout using d3.js and given json file structure

淺唱寂寞╮ 提交于 2020-01-01 05:42:09
问题 I have a json file with elements like this: [{ "name": "Manuel Jose", "ttags": ["vivant", "designer", "artista", "empreendedor"] }] I'm trying to get the node and the edges using this structure to complete a graph like: (diagram is taken from d3.js documentation) Both name and ttags in my json file refer to nodes, ttags are actually links between the node and another nodes. But, I cannot understand how to create this diagram using this library d3 and above json file. d3.json("/data/tedxufrj

d3.js - how to automatically calculate arc lengths in radial dendrogram

若如初见. 提交于 2019-12-18 10:24:22
问题 I'm creating a modified version of Mike Bostock's hierarchical edge bundling diagram: http://mbostock.github.com/d3/talk/20111116/bundle.html but I want to make arcs which span certain groups of data, like this: I'm currently just hardcoding the length of the arc, but I want to do it dynamically. How can I accomplish this? Here's my current code: /* MH - USER DEFINED VARIABLES */ var chartConfig = { "Tension" : .85, "canvasSize" : 800, "dataFile" : "../data/projects.json", "linePadding" : 160

Multilevel Hierarchical Edge Bundling

拥有回忆 提交于 2019-12-12 01:47:00
问题 I want to implement multilevel hierarchical edge bundling. By that I means I want to inculcate the behavior of radial tree like hierarchy and edge bundling like in Hierarchical Edge Bundling. The sample visualization is Radial Hierarchical bundling I know I need to use two d3.js layout for that. Also I need to change my json dataset accordingly. My sample dataset is only for normal d3.js HEB [ {"name": "A", "imports": ["A1", "A2", "A3"]}, {"name": "B", "imports": ["B1", "B2", "B3"]}, {"name":

D3 Dynamic hierarchical edge bundling - 2 way import

倖福魔咒の 提交于 2019-12-11 07:19:17
问题 I am trying to create a dynamic hierarchical edge bundling based on M Bostock's (http://bl.ocks.org/mbostock/7607999) implementation: The bl.ocks version of my data set is here: http://bl.ocks.org/ratnakarv/91ace0b5f77fff5ef0ab Unlike the original, where a relation between Node 1 and Node 2 is one way (i.e either Node 1 can import Node 2 or other way around), in my data set, Node 1 and Node 2 can have two way import relationship. This happens way too often in business process flows, which is

d3.js - how to automatically calculate arc lengths in radial dendrogram

泄露秘密 提交于 2019-11-29 21:50:28
I'm creating a modified version of Mike Bostock's hierarchical edge bundling diagram: http://mbostock.github.com/d3/talk/20111116/bundle.html but I want to make arcs which span certain groups of data, like this: I'm currently just hardcoding the length of the arc, but I want to do it dynamically. How can I accomplish this? Here's my current code: /* MH - USER DEFINED VARIABLES */ var chartConfig = { "Tension" : .85, "canvasSize" : 800, "dataFile" : "../data/projects.json", "linePadding" : 160, "textPadding" : 30, "arcPadding" : 5, "arcWidth" : 30 } var pi = Math.PI; var radius = chartConfig