Well B is out of the way it's not even a metal. So carrying on
Outer configuration of
Cr is 4s^1 3d^5
Zn is 3d^10 4s^2.
Ti is 4s^2 3d^2
Therefore the d orbitals of Chromium are empty compared to Zinc. Now my understanding goes something like this. Electrons in alkali metals and transition metals that have d orbitals have their excited electrons drop from excited state to ground state. An element emits light when electrons in higher energy levels drop to lower levels. Since the energy levels are quantized, the photon energy emitted by transition metals are also quantized. So light of only a specific wave length from each element is emitted. This all goes down to the basis of atomic phonemonon / Photoelectric effect and Bohrs model concerning electrons. Just nail down the two concepts of absorption of energy jumps to excited orbital and emission of energy occurs when "unexcited".