Select the thread to be dimensioned in the front view. The diameter dimension appears.
The dimension prefix (M in this example) is issued from the thread standard defined when creating the hole in the 3D Part.
In the top views you can modify threads dimensions orientation.