Ddim is made of these notes: D (root), F (minor third), Ab (diminished fifth).
With this shape the strings sound like this, from the D string to the D string: D, Ab, D, F.
A diminished chord is two minor thirds stacked on top of each other. It sounds tense and is usually played only briefly as a passing chord.
Ddim belongs to these major keys: E flat major (degree VII).