The Chandra view of the relation between X-ray and UV emission in quasars