ChartArea.getSymbolLayer

Syntax

getSymbolLayer();

Description

The getSymbolLayer method gets SVG element used to draw plot area objects layer.

Comments

This method returns a value of the SVGElement type.

Example

To execute this example, the HTML page must contain the BubbleChart component named bubbleChart (see Example of Creating the BubbleChart Component). Get SVG element used to draw the layer of plot area objects, get a layer object and show its ID:

// Get bubble chart area
var chartArea = bubbleChart.getChartArea();
// Get SVG element used to render the layer of plot area objects
var symbolLayer = chartArea.getSymbolLayer();
// Get layer object
var symbol = symbolLayer.childNodes[1];
// Display identifier of the obtained object
console.log("Identifier: " + symbol.id);

After the example execution the browser console shows ID of an object in the layer of plot area objects:

ID: Serie0_Point0

See also:

ChartArea