The correct chemical formula for magnesium chlorate is Mg(ClO3)2.
In this compound, magnesium (Mg) has a +2 charge, and each chlorate (ClO3) has a -1 charge. To balance the charges, you need two chlorate ions for each magnesium ion, resulting in the formula Mg(ClO3)2.