BubbleChart.getLegend

Syntax

getLegend();

Description

The getLegend property returns the legend that describes bubble chart value intervals.

Comments

This method returns a PP.Ui.IntervalsLegend value.

Example

To execute this example, the HTML page must contain the BubbleChart component named bubbleChart (see Example of Creating the BubbleChart Component). Place elements of bubble chart legend in two columns, and process the CaptionClick event:

// Get bubble chart legend
var legend = bubbleChart.getLegend();
// Display bubble chart legend in tow columns
legend.setColumnCount(2);
// Refresh bubble chart
bubbleChart.getInstance().refresh();
// Process title click event
bubbleChart.CaptionClick.add(function (sender, args) {
    console.log("Title type: " + args.Type);
});

After executing the example elements of bubble chart legend are placed in two columns:

On clicking the legend title the browser console shows type of this title, determined using the PP.Ui.VisualType enumeration:

Title type: Color

See also:

BubbleChart