getLeftLabelLayer();
The getLeftLabelLayer method returns SVG element used to render labels layer for bubble chart Y axis.
This method returns a value of the SVGElement type.
To execute this example, the HTML page must contain the BubbleChart component named bubbleChart (see Example of Creating the BubbleChart Component). Get value of the Y axis labels area:
// Get bubble chart plot area var chartArea = bubbleChart.getChartArea(); // Get width of the Y axis labels area console.log("Width of Y axis labels area: " + chartArea.getLeftLabelLayerWidth());
After that the console shows width of the Y axis labels area:
Width of Y axis labels area: 43
Clear the Y axis labels area:
// Clear the Y axis labels area chartArea.getLeftLabelLayer().children[0].remove();
As a result, the Y axis labels area is removed for the bubble chart:
See also: