LegendBase.Visibility

Syntax

Visibility: PP.Ui.Visibility;

Description

The Visibility property determines whether the legend is visible.

Comments

Use JSON or the setVisibility method to set the property value, and the getVisibility method to get the property value.

Example

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:

LegendBase