apply the colours to the data.