Howto remove the currency from the table or get ledger -j to work so that gnuplot can work with the data?
#+NAME: LedgerCli
#+BEGIN_SRC ledger :results raw :cmdline reg "Assets:Service Days" --exchange sd --format='| %D | %t | \n'
SOME LEDGER STATEMENTS
#+END_SRC
#+Name: ledgercli-table
#+RESULTS: LedgerCli
| 2019/12/01 | 12.0 sd |
| 2019/12/03 | -0.5 sd |
| 2019/12/05 | -0.5 sd |
| 2019/12/10 | -1.0 sd |
| 2019/12/17 | -1.0 sd |
| 2020/03/23 | -4.0 sd |
| 2020/04/01 | -0.1 sd |
| 2020/05/19 | -0.5 sd |
| 2020/05/26 | -0.3 sd |
#+begin_src gnuplot :var data=ledgercli-table :file gnuplot.png :exports results
set xdata time
set style data linespoints
set timefmt "%Y/%m/%d"
plot data u 1:2
#+end_src
#+RESULTS:
[[file:gnuplot.png]]
this results in
gnuplot> data = "/tmp/babel-sC46Yh/gnuplot-DvVaqU"
gnuplot> set term png
Terminal type is now 'png'
set output "gnuplot.png"
Options are 'nocrop enhanced size 640,480 font "arial,12.0" '
gnuplot> gnuplot> set xdata time
gnuplot> set style data linespoints
gnuplot> set timefmt "%Y/%m/%d"
gnuplot> plot data u 1:2
warning: Skipping data file with no valid points
^
x range is invalid
If I manually remove all occurrences of sd from the table a plot gets produces - not what I want but that is a different problem.