Infer type of X axis - fix displaing of datetimes