Official data shows China's consumer price index, a main gauge of inflation, went up 0.2 percent year on year in June.