Visibility: PP.Ui.Visibility;
The Visibility property determines whether the legend is visible.
Use JSON or the setVisibility method to set the property value, and the getVisibility method to get the property value.
To execute the example, the HTML page must contain the BubbleChart component named bubbleChart (see Example of Creating the BubbleChart Component). Get and hide interval legend:
// Get interval legend var legend = bubbleChart.getLegends()[0]; // Hide legend legend.setVisibility(PP.Ui.Visibility.Collapsed); // Refresh legend bubbleChart.refresh();
After executing the example the interval legend is hidden:
See also: