Ddim7 (D diminished seventh) is a four-note chord made from D, F, Ab and Cb. A diminished seventh is minor thirds stacked all the way up, so it is symmetrical: the same shape moved up three frets plays the same notes. It makes a tense passing chord that leads up a half step.
Built from the root D, the minor third F, the flat fifth Ab and the diminished seventh Cb.
Frets from low E to high E; x means don't play that string.
Easiest shape to start with: Open position (xx0101). It has 2 open strings, nothing above fret 1 and 2 muted strings.
Every note of Ddim7 is in these keys. The numeral is its place in the key.