Generally speaking, it's okay, but Xi'an is relatively far away. Generally speaking, Jiuzhaigou in Chengdu and Chongqing is a line. There are too many areas involved and it may not be possible to play well within a limited time. Please consider carefully when traveling
I think it's okay. I suggest that when you go from Chengdu to Xi'an, you can visit places such as Hanzhong and Qinling, and take a walk along the Shu Road.