Aspect: Number;
The Aspect property sets selection frame width and height ratio.
By default the property value is zero.
Use the setAspect method to set the property value, and the getAspect method to get the property value.
If the property value is 0, selection frame width and height are independent.
To execute the example, the HTML page must contain the BubbleChart component named bubbleChart (see Example of Creating the BubbleChart Component). Set selection frame width and height ratio:
// Get selection frame of bubble chart var selection = bubbleChart.getAreaSelection(); //Set selection frame width and height ratio selection.setAspect(3);
Move the mouse cursor to the center of bubble chart rendering area and hold down the left mouse key. Hold down the button and drag the cursor to the bottom right corner of bubble chart rendering area. As a result, bubble chart selection frame is displayed with its width three times larger than its height:
See also: