getMapping(visualType: PP.Ui.VisualType);
visualType. Type of bubble chart bubble setting.
The getMapping method returns settings used to map coordinates in the specified axis for bubble chart items.
This method returns a value of the PP.DataMapping type.
To execute this example, the HTML page must contain the BubbleChart component named bubbleChart (see Example of Creating the BubbleChart Component). Change minimum and maximum values for X and Y axes of the bubble chart:
// Get settings for mapping coordinates by the X axis for bubble chart items var xDataMapping = bubbleChart.getMapping(PP.Ui.VisualType.X); var yDataMapping = bubbleChart.getMapping(PP.Ui.VisualType.Y); // Set minimum and maximum values for the X axis of bubble chart var xDataTransformer = xDataMapping.getDataTransformer(); xDataTransformer.setMinValue(-10000); xDataTransformer.setMaxValue(70000); // Set minimum and maximum values for the Y axis of bubble chart var yDataTransformer = yDataMapping.getDataTransformer(); yDataTransformer.setMinValue(25); yDataTransformer.setMaxValue(130); // Refresh bubble chart bubbleChart.refresh();
After the example execution the minimum value -10000 and the maximum value 70000 are set for X axis. In the same way the values 25 and 130 are set for Y axis:
See also: