I have a data table that looks something like:
Week,value
2010-01-03 - 2010-01-09,0
2010-01-10 - 2010-01-16,0
2010-01-17 - 2010-01-23,0
2010-01-24 - 2010-01-30,0
2010-01-31 - 2010-02-06,0
2010-02-07 - 2010-02-13,0
2010-02-14 - 2010-02-20,0
2010-02-21 - 2010-02-27,0
2010-02-28 - 2010-03-06,0
...
How do I include this to render a simple x/y plot using pgfplots? I'd like the dates on the x-axis and the values on the y-axis.
I've tried this, but it is not working (fails to parse the dates):
\begin{tikzpicture}
\begin{loglogaxis}[
title=Trends,
xlabel={Date},
ylabel={Searches},
]
\addplot table {data/trends.dat};
\end{loglogaxis}
\end{tikzpicture}

value, i.e. you use\addplot table[x expr=\coordindex]. Perhaps there is a suitable way to show which week corresponds to which index? ... and the x axis should have a linear scale, I suppose. – Christian Feuersänger Feb 06 '14 at 18:54