This diagram shows the mass of the galaxies and their respective distance. Galaxies with just a few million solar masses are small dwarf elliptical galaxies, while spiral galaxies billions or even trillions of solar masses are heavy.