Add legend snippet