Chiral skyrmions in an anisotropy gradient