The standard grips this chord is usually shown with.
Ddim is D, F and Ab, a diminished triad. The shape this page opens on is written xx01x1, lowest string first.

Also written D°, Do or D diminished. The same chord either way; which spelling you meet depends on who wrote the chart.
There are 5 common shapes for Ddim on the guitar, and 51 derived voicings in 2 families.
In which keys. Every note of Ddim belongs to C minor (the ii°) and Eb major (the vii°).
The common shapes, written lowest string first: xx01x1, x53x34, x5676x, 10-8-x-10-9-x, x-x-12-13-x-13.
Triad. Three notes across one string set. Ddim has xx313x, xxx131, xx0131, xx3131, 453xxx, x5676x, x867xx, xx676x.
Open string. An open string left ringing against a fretted grip. Because it costs no finger, it sounds a note the closed shape has none left for -- a tension on top, or a pedal root underneath. Either a familiar grip with open strings added, or a shape so sparse the open strings carry the chord. These belong to their key rather than to a shape, so D, A, G and E have many and Eb a handful. Ddim has 4530xx, 4x006x.
Tensions. A shell of Ddim, root, third and seventh, leaves a string free, and the tones that belong over it are the 11 (G) and the b13 (Bb).
The common shapes and the derived voicings come from different places, and both are explained in where the chords and the theory come from.
Shows each chord the way this style would voice it, and marks which of its alternatives belong to the idiom.