Splunk Search

How can I change the legend values for timechart to a different format?

How can I change the values in the legend for a timechart? I use:
index=indexone sourcetype=sourceone | timechart count by X usenull=0 span=1h |timewrap 1day

Some of the results look like: X22daysbefore. I want to have just the X.