BubbleChart.getSizeLegend

Syntax

getSizeLegend();

Description

The getSizeLegend method returns legend that describes sizes of bubble chart bubbles.

Comments

This method returns a value of the PP.Ui.SizeLegend type.

Example

To execute this example, the HTML page must contain the BubbleChart component named bubbleChart (see Example of Creating the BubbleChart Component). Set the black fill color for bubbles of the legend, that describes their size in the bubble chart:

// Get legend that describes sizes of bubble chart bubbles
var sizeLegend = bubbleChart.getSizeLegend();
// Set black fill color for bubble chart bubbles
sizeLegend.setMarkerColor("#000000");
// Refresh legend
bubbleChart.refresh();

After executing the example black fill color is set for bubbles of the legend that describes bubbles size in the bubble chart:

See also:

BubbleChart