Module: PointLayer

This layer is used to create various symbols for each data point. This is commonly used in scatterplot visualizations. The mark type of this layer is ```point```.
Source:

Methods

(static) defaultConfig() → {Object}

Returns the default configuration of the point layer
Source:
Returns:
Default configuration of the point layer
Type
Object

getNearestPoint(x, y) → {Object}

Gets the nearest point from a position.
Parameters:
Name Type Description
x number x position
y number y position
Source:
Returns:
Point details
Type
Object

render(container) → {BarLayer}

Renders the plot in the given container.
Parameters:
Name Type Description
container SVGElement SVGElement which will hold the plot
Source:
Returns:
Instance of bar layer
Type
BarLayer

translatePoints(data, encoding, axes) → {Array.<Object>}

Generates an array of objects containing x, y, width and height of the points from the data
Parameters:
Name Type Description
data Array.<Array> Data Array
encoding Object Config
axes Object Axes object
Source:
Returns:
Array of points
Type
Array.<Object>