d3. selection

new selection ( )

A constructor function defined by the D3.js library.

Source

Methods

chart ( chartName, options )

Instantiate a chart or return the chart that the current selection belongs to.

You can edit the code in this block and rerun it.

Parameters

  • chartName String optional

    The name of the chart to instantiate. If the name is unspecified, this method will return the chart that the current selection belongs to.

  • options mixed required

    The options to use when instantiated the new chart. See Chart for more information.

Source

layer ( options )

Returns: d3.selection

Create a new layer on the d3 selection from which it is called.

Parameters

Returns

Type: d3.selection
Source