Which characteristic of a star directly dictates the specific dark absorption lines visible in its spectrum?

Answer

The rate of ionization within its atmosphere

The surface temperature governs the rate at which atoms in the star's atmosphere become ionized, and it is this ionization state that produces the unique pattern of dark absorption lines observed in the star's spectrum.

Which characteristic of a star directly dictates the specific dark absorption lines visible in its spectrum?
astronomystarcelestial bodymassFeature