Tweaked legend to allow legend item to wrap around.