toggling metrics from legend