1.9.1: Barchart report X axis label incorrect

Andreas Köhler andi5.py at gmx.net
Thu Feb 23 03:38:33 EST 2006


Hi,

On Thursday, 23 Feb 2006, 05:26 CET, Aaron Larson wrote:
> Gnucash 1.9.1, kubuntu, no config or make options.
> 
> 1. Select Reports/Assets & Liabilities/Asset Barchart
> 
> The X axis is labeled with the name of the asset rather than the
> date. 
> 
> Similar for Average Balance and Net worth.

Thank you for the report.

Attached patch fixes this for me, I hope it is correct.

Nevertheless it is hard to determine exactly which data a certain
label belongs to if it is too wide (just set daily step size). Is
there a way to improve that?

-- andi5
-------------- next part --------------
Index: src/gnome-utils/gnc-html-graph-gog.c
===================================================================
--- src/gnome-utils/gnc-html-graph-gog.c	(revision 13364)
+++ src/gnome-utils/gnc-html-graph-gog.c	(working copy)
@@ -433,7 +433,7 @@
                 "type",                         barType,
                 "overlap_percentage",           barOverlap, 
 		NULL);
-  labelData = go_data_vector_str_new(  (char const * const *)col_labels, datacols, NULL );
+  labelData = go_data_vector_str_new(  (char const * const *)row_labels, datarows, NULL );
   {
     // foreach row:
     //   series = row


More information about the gnucash-devel mailing list