Suppose we have in ~/time-data/time-data.org the following data:

* Parent1
CLOCK: [2019-07-09 Tue 00:00]--[2019-07-09 Tue 00:20] =>  0:20
** Child1
CLOCK: [2019-07-10 Wed 00:02]--[2019-07-10 Wed 00:40] =>  0:38
** Child2
CLOCK: [2019-07-11 Thu 00:02]--[2019-07-11 Thu 06:40] =>  0:38

We then can use atheriel/org-clock-csv to to pull this data via

(org-clock-csv-to-file "~/time-data/time-data.csv" '("~/time-data/time-data.org"))

so that in Mathematica we can run:

enter image description here

Question: How do we get a DateListPlot out of this that shows, i.e., hours spent per day?

  • 1
    $\begingroup$ If you do ds = SemanticImport["f.csv", HeaderLines->1], then DateListPlot[ds[All, "start"] that will get you somewhere. Also have a look at TimelinePlot - you could generate intervals using the start and ends. (And hello, fellow emacser) $\endgroup$ – Carl Lange Jul 9 at 20:38
  • $\begingroup$ There is Gantt-chart making tool for org-mode in emacs, but I never made it work. So, I did/do similar imports and timeline plots. $\endgroup$ – Anton Antonov Jul 9 at 21:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.