IntervalsLegend.ItemsOrder

Syntax

ItemsOrder: PP.Ui.LegendItemsOrder;

Description

The ItemsOrder property determines display order of legend items.

Comments

Use the setItemsOrder method to set the property value, and the getItemsOrder method to get the property value.

By default the property value is set to PP.Ui.LegendItemsOrder.TopToBottomByPages.

Example

To execute the example, the HTML page must contain the BubbleChart component named bubbleChart (see Example of Creating the BubbleChart Component). Set display order for legend elements:

// Get bubble chart legend
var legend = bubbleChart.getLegend();
// Set display order for legend elements
legend.setItemsOrder(PP.Ui.LegendItemsOrder.LeftToRight);
// Refresh bubble chart display
bubbleChart.refresh();

After executing the example legend elements are displayed from left to right:

See also:

IntervalsLegend