javascript - D3.js Tree layout canvas resize -


this continuation of efforts build collapsible tree layout using d3.js.

generate (multilevel) flare.json data format flat json

the layout looks like: (http://bl.ocks.org/mbostock/raw/4339083/) around 3k nodes , depth of nodes around 25. current size of canvas need set 8000px width , 8000px height in order nodes visible know not reasonable when number of tree levels rendered 2 or 3. furthermore, intend make code reusable other trees maybe smaller/larger in size based on data source(json file) selected.

so wondering if possible resize canvas size relative positions of nodes/ number of nodes shown on screen. way, code more systematic , adaptable.

i saw this:

dynamically resize d3 tree layout based on number of childnodes

but resizes tree, if can imagine in case of tree around 3k nodes, makes hard read , comprehend.

i know might not related d3.js tagged explain issue , bring in d3 experts might have faced similar condition.

i attempting filter out uninformative nodes based on criteria render less number of nodes actual data. (i know run performance issues larger trees). appreciated.

note: when canvas, mean area on tree drawn , not "canvas". not familiar jargon kindly read accordingly.

i facing similar problem , have find out solution. check on link. d3 collapsible tree, node merging issue


Comments

Popular posts from this blog

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -