ItemsOrder: PP.Ui.LegendItemsOrder;
The ItemsOrder property determines display order of legend items.
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.
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: