# How do scientists estimate elemental-abundance in the universe?

I understand how cosmological observations can estimate the amount of 'baryonic matter' in the universe, but what I don't understand is how scientists can estimate the abundance of a particular element in the universe.

For example, how can scientists come up with such a chart?