getPaper();
The getPaper method returns the sheet where the chart elements are rendered.
The returned value: SVGElement.
Executing the example requires the ParallelCoordinates component named coord (see Example of Creating the ParallelCoordinates Component). Get values of left and top sheet paddings and also sheet size:
// Get value of the sheet left padding console.log("Left padding value: " + coord.getChartArea().getPaper().style.left); // Get value of the sheet top padding console.log("Top padding value: " + coord.getChartArea().getPaper().style.top); // Get sheet width console.log("Sheet width: " + coord.getChartArea().getPaper().style.width); // Get sheet height console.log("Sheet height: " + coord.getChartArea().getPaper().style.height);
After this values of left and top paddings and sheet size are displayed in the browser console:
Left padding value: 10px
Top padding value: 24px
Sheet width: 580px
Sheet height: 366px
See also: