Yes, Chinese immigrants to the U.S. were subject to discrimination and violence in the late 1800s. This was particularly prevalent during the Chinese Exclusion Act of 1882 signed by 21st American President Chester Allan Arthur, which prevented the immigration of Chinese laborers from China to America. Previously, the Page Act of 1875 prevented Chinese women from immigrating to America. As you may know, in China, girls are treated inferiorly to boys--with many girl babies even being dropped down wells upon being born.
Ten years after the Chinese Exclusion Act was passed, the Geary Act of 1892 attempted to halt Chinese immigration to the United States for another ten years until 1902 when the rules were bent to allow Chinese teachers, diplomats, students, merchants, and travelers to enter the United States lawfully.
I hope this helps!