Replace ordinal scale with time scale on x axis