welche rangeSelector-Schaltfläche in Highcharts ausgewählt ist

Ich möchte wissen, wie ich feststellen kann, welche rangeSelector-Schaltfläche im Highstock ausgewählt ist.

Mein BereichAuswahltasten:

   buttons: [{
            type: 'month',
            count: 1,
            text: '1 MONTH',
        }, {
            type: 'month',
            count: 3,
            text: '3 MONTH'
        }, {
            type: 'month',
            count: 6,
            text: '6 MONTH'
        }, {
            type: 'ytd',
            text: 'YTD'
        }, {
            type: 'year',
            count: 1,
            text: '1 YEAR'
        }, {
            type: 'all',
            text: 'ALL'
        }],

Zum Beispiel klicke ich auf meinen ersten rangeSelector, der 1 MONAT ist. Ich möchte wissen, ob diese Schaltfläche ausgewählt ist oder nicht.

Gibt es eine Veranstaltung?

Vielen Dank

Antworten auf die Frage(2)

Ihre Antwort auf die Frage