Officials in southern China appear to have averted environmental calamity by halting the spread of a toxic metal that had threatened to foul drinking water for tens of millions of people, the state media reported Monday.

Officials said they had successfully diluted the concentration of cadmium, a poisonous component of batteries, that has been coursing down the Longjiang River in the Guangxi Zhuang Autonomous Region.