First measurements of the spectral and angular distribution of transition radiation using a silicon pixel sensor on a Timepix3 chip