IntervalsLegend.AllowMultipleSelection

Syntax

AllowMultipleSelection: Boolean;

Description

The AllowMultipleSelection property determines whether multiple selection is available for legend elements.

Comments

Available values:

Use JSON or the setAllowMultipleSelection method to set the property value and the getAllowMultipleSelection method to get the property value.

Example

Executing the example requires that the HTML page contains the BubbleChart component named bubbleChart (see the Example of Creating the BubbleChart Component section.

// Get value interval legend
var legend = bubbleChart.getLegend();
// Set color and transparency of the brush for highlighting legend elements
var brush = legend.getHighlightBrush();
brush.setColor("#FFE500");
brush.setOpacity(0.2);
legend.setHighlightBrush(brush);
// Set color of legend highlighted elements
legend.setHighlightItemColor("LightSeaGreen");
// Set mode of highlighting display on click
legend.setHoverMode(PP.HoverMode.Click);
// Enable legend element highlighting
legend.setDoHighlight(true);
// Disable multiple selection of legend elements
legend.setAllowMultipleSelection(false);
// Refresh chart
bubbleChart.refresh();

After executing the example the following legend properties were changed: color and transparency of the brush for highlighting legend elements, color of highlighted elements, highlighting display mode on click is set, highlighting is enabled, and multiple selection of legend elements is disabled.

See also:

IntervalsLegend