# Vertical triangle commutative diagram

I want to draw a vertical triangle commutative diagram:

$\begin{tikzcd} X \arrow{r}{i} \arrow[swap]{d}{\varrho_x^f} & D(X) \arrow{d}{\varrho_x^g} \\ D \end{tikzcd}$


but I do not know how to correct that.

I've added a column, empty in the first row, with D in the second cell.
\documentclass{article}
$\begin{tikzcd} X \arrow{rr}{i} \arrow[swap]{dr}{\varrho_x^f} & & D(X) \arrow{dl}{\varrho_x^g} \\[10pt] & D \end{tikzcd}$