Watch the D Chords online guitar lesson by Joe Dalton from Fretboard Epiphanies
Here is the same idea using chords and scale from the key of D. You will find memorizing these patterns very useful. At first, you see the D chords. The next example shows the chords along with the scale notes you might use to create a melody. The third example shows the same chords and scale with the A bass. The final set shows the D chords with the E bass. These are also known as E11th chords.