For some time I used PyChart, but due it's complexity and really odd api, I dumped it and get back to OpenOffice. Yes, I went back to stone age, from nice comfort of favorite editor to clicking on eat-all-available-memory OpenOffice.
From time to time, I stumble upon some library, but nothing I would be satisfied with. Until I found guile-charting.
Honestly, Guile is not my favorite package and I install it mostly to play with differences on Scheme implementations, but from no on, guile-charting will be probably the main reason why I will keep Guile package installed.
Here is the sample code (also on pastebin):
(use-modules (charting))and will produce this:
(make-bar-chart "Monthly status for Foo project"
'(("January"
(232 "Download")
(20 "Upload"))
("February"
(80 "Download")
(320 "Upload"))
("March"
(130 "Download")
(150 "Upload"))
)
#:write-to-png "usage.png"
#:chart-height 200
)
You will also need guile-cairo for guile-charting.
2 comments:
Glad you were able to make Guile-Charting work for you!
The upcoming Guile 2.0 should work much better for you than 1.8. You'll need to pull your git tree for it to work, though.
Cheers,
Andy
:)
Yes I know ;) I'm trying to keep up with major changes in Guile 2.0 and eagerly waiting official 2.0 release.
Post a Comment