Generally, no matter where the tonic is located, there are always 3 locations for the other chord tones [3, 5, 7] no more than three frets away from it.
Tonic on 6th string:
Tonic on the 5th string: Tonic on the 4th string: Tonic on the 3rd string: Tonic on the 2nd string: Tonic on 1st string: