legend added to metric visualizer