The elements that have the most similar chemical properties are those that have the same number of valence electrons. Elements with the same number of valence electrons can be found in the same column or "group" on the periodic table. The elements that satisfy this criterion are Mg, Sr, and Ba.
it can be from all as some plants are hydrotrophic i.e. they get attracted to water but some get away from water. Same sunflower faces sun from morning to evening but some plants get burnt while in sun.