Fix x tick format for categorized axis