ChartArea.getPaperArea

Syntax

getPaperArea();

Description

The getPaperArea method returns container of bubble chart plot area.

Comments

This method returns a PP.Rect value.

Example

To execute this example, the HTML page must contain the BubbleChart component named bubbleChart (see Example of Creating the BubbleChart Component). Get container of bubble chart plot area and output its sizes:

// Get bubble chart area
var chartArea = bubbleChart.getChartArea();
// Get container of bubble chart plot area
var paperArea = chartArea.getPaperArea();
// Output sizes of bubble chart plot area container
console.log("Width: " + paperArea.getWidth() + " Height: " + paperArea.getHeight());

After executing the example the browser console displays sizes of the container that stores bubble chart plot area:

Width: 500 Height: 239

See also:

ChartArea