Add legend in diagram