What are the Chinese dialects that people speak in China?

While most people's native language is Mandarin in China. There are 9 types of dialects which include Wu, Gan, Xiang, Min, Hakka, Yue, Jin, Huizhou ad Pinghua. These dialects share the same Chinese character as Mandarin which means the formal writing is the same. But they all have their own unique pronunciation which makes it hard to understand between the speakers of different dialects.