How can I make the thousand separator work for x tick labels when I use symbolic x coordinates for labels? For some reason that setting is not affecting the output at all. Note that by default I use old style numbers but in the figures the numbers can be new style. Any ideas how to fix this?
Below is a minimal example. The y tick lables have a proper separator, but x labels don't.
\documentclass[10pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{pgfplotstable}
\usepackage{lmodern,textcomp}
\usepackage[sc,osf]{mathpazo}
\pgfplotsset{compat=1.15}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
y tick label style={
/pgf/number format/1000 sep=\,},
x tick label style={
/pgf/number format/1000 sep=\,},
symbolic x coords={$1000$, $5000$},
xtick=data,
ybar
]
\addplot coordinates {($1000$, 1000) ($5000$, 1200)};
\end{axis}
\end{tikzpicture}
\end{document}