ChartCatView.getChartLegendPositionListBox

Syntax

getChartLegendPositionListBox();

Description

The getChartLegendPositionListBox method returns the list of available positions to select the location for chart legend in working area of the express report.

Comments

The method returns an object of the PP.Ui.ListBox 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 orientation of the PP.Ui.ListBox component:

// Get view of the Chart tab
var chartCategory = expressBox.getRibbonView().getChartCategory();
console.log("Orientation: " + chartCategory.getChartLegendPositionListBox().getOrientation());

After executing the example the browser console displays an element of the PP.Orientation.Horizontal enumeration that means horizontal orientation of the list of available positions of chart legend:

Orientation: 1

See also:

ChartCatView