Load Data into Combos

Double-click nodes to see their contents.

A glyph indicates the node's contents have not yet been loaded into the chart. Double-clicking these nodes will turn them into combos, and populate them with a new set of data.

This demo shows you how you can use the parentId property of data to merge it into an existing node in the chart, promoting that node into a combo. This allows you to load a small ‘top level’ network initially, and bring in lower levels of detail on demand, reducing the need to bring large numbers of nodes and links into a chart when they aren’t needed.

The demo works by listening to a 'double-click' event, and calling first a chart.merge() to bring in the new data with the appropriate parentId, followed by a chart.combo().arrange() call to ensure the new combo is correctly sized and arranged.

Key functions used: