How to read these chord diagrams

The chords are shown as if it's you looking down on your guitar.
See the following example (D major).



The numbers represent these fingers: