From experiment, we can find the contamination from graph to the test by UV-VIS spectrophotometer .The graph of Iron(III) standard and Iron(III) sample and the graph graph nickel(II) nitrate standard and nickel(II) nitrate sample. Graphs of the two compounds were compared to see the difference of the graph.