ChartCatView.getChartLegendMenu

Syntax

getChartLegendMenu();

Description

The getChartLegendMenu method returns the menu that opens on clicking the Legend button on the Chart tool ribbon tab.

Comments

The method returns an object of the PP.Ui.Menu class.

Example

Executing the example requires that the HTML page contains the ExpressBox component named expressBox (see Example of Creating the ExpressBox Component). The example given below outputs the number of children in the Legend menu item:

// Get view of the Chart tab
var chartCategory = expressBox.getRibbonView().getChartCategory();
console.log("Menu items count: " + chartCategory.getChartLegendMenu().getItems().length);

The number of children in the Legend menu item on the Chart tab of tool ribbon is displayed as the result of executing this example:

Menu items count: 1

See also:

ChartCatView