Neck charts for the D Major Scale (a.k.a. "Ionian mode") and the B Minor Scale (a.k.a. "Aeolian Mode").
Here's a fingering chart for the D major scale:
The D major scale has two sharps, F# and C#. You can use it to play over D major chords, including Dmaj7 chords. The D root note is shown in a darker shade of grey. The safest notes in the scale are the root (D), the third (F#) and the fifth (A), as these comprise the D major triad.
The D major scale is also known as the D Ionian mode. And, though the magic of modes, it contains several other scales, including its relative minor, the B minor scale:
The B minor scale is also known as the Bm Aeolian mode or the "natural minor" scale. You can use it to play over B minor chords, including Bm7 chords. The B root notes is shown in a darker shade of grey. The safest notes in the scale are the root (B), the third (D), and the fifth (F#), as these comprise the B minor triad.