Stacked bars and negative numbers...
Christian Stimming
stimming@tuhh.de
Mon, 4 Feb 2002 19:49:57 +0100
-----BEGIN PGP SIGNED MESSAGE-----
On Monday 04 February 2002 15:50, lmb wrote:
> the reports with stacked bars don't seem to work well at all if one of the
> accounts included happens to be negative; or rather they work, but add it
> up as if it was positive ;-)
Right. The limitation lies within Guppi's barchart API, not (in principle)
within Gnucash. You would need to extend Guppi's chart types significantly
(or, more precisely, the Guppi chart types that are accessible through the
libguppitank interface). I think there was a discussion last summer where we
ended up ignoring the sign of numbers for the stacked barchart; you might
want to browse the gnucash-devel for that discussion.
> Any idea on how to treat this? I would suggest adding them below zero, but
> my Scheme knowledge doesn't exist...
Again, Guppi's libguppitank doesn't offer us the possibility of having a
stacked barchart with parts of it below zero but other parts above zero.
> I am also looking at adding a "gain/losses" to the asset/liability/networth
> barchart; I hope I can get that done ;-)
Do you mean that you would have a) one stacked bar showing the assets plus b)
another bar showing the gain/loss in that month? Again, that's the limitation
of the libguppitank interface. One would need to basically create a whole new
chart based on Guppi's native (powerful but complex) interface.
> What would also be cool (while I am at it): Numbers at the top of the bars,
> so one knew what the actual value was; how would I do that?
I thought of that before. It isn't too difficult, you would "only" need to
code the labels into Guppi's creation of the barchart in the libguppitank
interface...
> And finally, is it possible to do reports in Perl or Python so I don't have
> to learn scheme? ;-)
Currently it is not, even though it's not at all impossible. I'd refer to
the latest occurence of "the programming language discussion" at e.g.
http://www.gnumatic.com/pipermail/gnucash-devel/2001-January/002477.html
Christian Stimming
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.5 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iQCVAwUBPF7X1WXAi+BfhivFAQE5ggP9GN5lSxdl7K8nG69CI2fPggWrJF+ji+VN
qoNpM/T/ZCdF6O/ENW6N5Gxid5UNHv5G3oCTFkzou4YCmthXsM7hiI+4995eyHKi
lezVzbrARv8rJTmHbvsafOPW7G4de20lfZpWiPQYUCizu0TEO1fIcUMAORgH+YUk
W4nQn0Q57Ow=
=wa9b
-----END PGP SIGNATURE-----