fix issue #168 (legend items can be configured to behave as radio buttons on click)