getMappingMax(visualType: PP.Ui.VisualType);
visualType. Type of bubble chart bubble setting.
The getMappingMax method returns maximum value for the specified bubble chart axis.
This method returns a Number type value.
To execute this example, the HTML page must contain the BubbleChart component named bubbleChart (see Example of Creating the BubbleChart Component). Find minimum and maximum results in the X and Y axes for bubble chart:
// Get minimum and maximum result for the X axis var minX = bubbleChart.getMappingMin(PP.Ui.VisualType.X); var maxX = bubbleChart.getMappingMax(PP.Ui.VisualType.X); console.log("Minimum result in the X axis: " + minX + ", maximum result: " + maxX); // Get minimum and maximum result for the Y axis var minY = bubbleChart.getMappingMin(PP.Ui.VisualType.Y); var maxY = bubbleChart.getMappingMax(PP.Ui.VisualType.Y); console.log("Minimum result in the Y axis: " + minY + ", maximum result: " + maxY);
After the example execution the browser console shows minimum and maximum results in the X and Y axes:
Minimum result in the X axis: 34, maximum result: 465
Minimum result in the Y axis: 209, maximum result: 34
See also: