The spectral distribution of the thermal energy radiated by a blackbody (i.e. the pattern of the intensity of the radiation over a range of wavelengths or frequencies) depends only on its temperature. As the temperature increases wavelength of peak emission decreases.
And the graph follows as: