getPaper();
The getPaper method returns SVG element that contains bubble chart plot area.
This method returns a SVGElement value.
To execute this example, the HTML page must contain the BubbleChart component named bubbleChart (see Example of Creating the BubbleChart Component). Get SVG element that contains bubble chart plot area and output plot area size:
// Get bubble chart area var chartArea = bubbleChart.getChartArea(); // get SVH element that contains bubble chart plot area var paper = chartArea.getPaper(); // Display sizes of bubble chart plot area console.log("Width: " + paper.clientWidth + " Height: " + paper.clientHeight);
After executing the example the browser console displays sizes of bubble chart plot area:
Width: 500 Height: 243
See also: