Module: TextLayer

This layer is used to create labels for each data point. It has an encoding property ```text``` which determines from which field's data the value of the label will be taken. The text encoding property is necessary for the layer to render the text.The mark type of this layer is ```text```.
Source:

Methods

(static) defaultConfig() → {Object}

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

render(container) → {textLayer}

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

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>