I need an functionality to make sub Chart

Hi,
I need a functionality to make a sub diagram for specific node with all its children. Sub diagram should be in another div container. Please see attached image for more info.

This sounds just like what the Local View sample does, except that that sample is slightly more complicated in its generation of the sub-diagram by including the selected node’s parent and grandparent nodes and links.