This defines a node template consisting of a top half and a bottom half. Each half's text and color are data bound. However the size of each node is fixed, so if the text is too long, it will be clipped.

The "RoundedTopRectangle" and "RoundedBottomRectangle" figures are defined in RoundedRectangles.js in the extensions directory. See also the Rounded Groups sample.

{ "nodeDataArray": [ { "key": "Alpha", "topText": "A", "topColor": "lightgray", "bottomText": "B", "bottomColor": "green" }, { "key": "Beta", "topText": "C", "bottomText": "D", "bottomColor": "red", "star": true } ], "linkDataArray": [ { "from": "Alpha", "to": "Beta" } ] }