Correlation of the Mg II h & k flux versus rotational period in late-type stars