The relative emission from chromospheres and coronae: dependence on spectral type and age