add offset support for non-timestamp x-axis.