Class: GraphNodeRenderer

GraphNodeRenderer

A Renderer implementation that renders a set of graph nodes.

new GraphNodeRenderer(spec)

Instantiate a GraphNodeRenderer object.
Name Type Description
spec Object The specification object.
{
    node: {
        xKey      {String|Function} - The attribute for the x coordinate.
        yKey      {String|Function} - The attribute for the y coordinate.
        radiusKey {String|Function} - The attribute for the node radius.
        themes    {Array}   The array of RenderThemes to be attached to this component.
    },
    criticalNode: {
        flag     {String|Function} - The boolean attribute to designate critical nodes.
        themes   {Array}  - The array of RenderThemes to be attached to this component.
    },
    parentNode: {
        xKey      {String|Function} - The attribute for the parent node x coordinate.
        yKey      {String|Function} - The attribute for the parent node y coordinate.
        radiusKey {String|Function} - The attribute for the node radius.
        themes    {Array}  - The array of RenderThemes to be attached to this component.
    }
}

Extends

Methods

Add a hook function to the renderer.
Name Type Description
hook function the callback function.
Remove a hook function from the renderer.
Name Type Description
hook function the callback function.
Select all entries in the rendered layer that also share the same selected value. The 'selectKey' of the 'select' option must be set.
Name Type Description
selectedEntry Object The selected data entry.
Unselect all entries in the rendered layer.