RatingChart.selectAll

Syntax

selectAll();

Description

The selectAll method selects all rating chart data series.

Example

Executing the example requires that the page contains the RatingChart component named ratingChart (see Example of Creating the RatingChart Component). In the BODY tag add div items with the div1 and div2 identifiers.

Add the but1 and but2 buttons to the page, process button click events:

    // Button selects all data series
    var but1 = new PP.Ui.Button({
        ParentNode: document.getElementById("div1"),
        Content: "Select all"
    })
    but1.Click.add(function (sender, args) {
        ratingChart.selectAll();
    })
    // Button deselects all data series
    var but2 = new PP.Ui.Button({
        ParentNode: document.getElementById("div2"),
        Content: "Deselect all"
    })
    but2.Click.add(function (sender, args) {
        ratingChart.deselectAll()
    })

After executing the example the following buttons are placed:

See also:

RatingChart