javascript - Is it possible to nest one (or more) layout(s) within another, different layout(s) in d3? -


i'm trying build force-directed layout, wherein connected nodes have own internal layout not recursive force-directed layout (which, believe, possible hierarchy layout). "inner" layout custom, but, illustration let's wanted nodes, internally, have partition layout. possible?

my question twofold:

  1. can pull off having more 1 style of layout (for instance, bubble graph inside force-directed graph) in sensible way d3, or d3 wrong tool such thing, and
  2. can use d3 layouts each of these layouts, or have custom.

in end, design changed, , no longer called odd scenario. being more familiar d3, though, think can answer.

yes. can done. each layout own discrete object, own data on work, , can given own dom elements populate. creating 2 layouts shared same data , dom outputs work, if manage interaction between 2 (making sure 1 overrode changes other when desired).

what know can sure manually manipulate anything d3 doing. @ 1 point during development, actually, did have 2 layouts on same page, come think of it. laying out half graph pre-determined x/y coordinates, , allowing rest laid out force directed layout. first set, manually placed nodes, have been placed other logic pre-determined coordinates, , functionality have been same.


Comments

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -