Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I'd like to create a plot (just data points) where the x-values are dates like yyyy-mm-dd (no time needed, just day). The dates aren't consecutive, just various jumbled dates.
Looking at the docs for some of the various alternatives (GD::Graph, Chart::Gnuplot, Chart::Clicker, Chart), I don't see any mention of being able to automatically use dates (I want them to be treated like regular numerical values).
I suppose I could convert the dates to epoch times using DateTime, but then I'd have a plot showing epoch times in the x-axis instead of dates, but that would be difficult for readers to make sense of.
Should I used Datetime and fiddle with trying to convert date values and manually setting plot tick values, or can one of the plotting / charting modules do this for me?
Thanks!
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Create a plot / chart with dates as x-values?
by BrowserUk (Patriarch) on Jan 02, 2013 at 16:26 UTC | |
by Anonymous Monk on Jan 02, 2013 at 17:30 UTC | |
by BrowserUk (Patriarch) on Jan 02, 2013 at 18:58 UTC | |
Re: Create a plot / chart with dates as x-values?
by space_monk (Chaplain) on Jan 02, 2013 at 16:21 UTC | |
by Anonymous Monk on Jan 02, 2013 at 16:31 UTC | |
Re: Create a plot / chart with dates as x-values?
by Anonymous Monk on Jan 02, 2013 at 18:34 UTC |