Phanikiran
Phanikiran

Reputation: 181

Can we change highcharts legend to work as radio button instead of checkbox style?

Right now if i use any highcharts, i can see a legend and the legend is clickable, which will toggle the behaviour of the graph. The legend currently functions as if like a checkbox -- where you can click/toggle multiple items in a legend. I wanted something like at any point of time not more than one option should be selected.

Please let me know if this is possible or not. If so please give me some idea.

Thanks in Advance!

Upvotes: 4

Views: 2455

Answers (1)

Linger
Linger

Reputation: 15058

You can use something like the following which will only show the selected series. Click through the series in the legend to see what it does.

Upvotes: 4

Related Questions