Subject: | Labels for bars in mixed graph misaligned |
Date: | Thu, 3 Apr 2008 21:52:14 -0700 |
To: | bug-GDGraph [...] rt.cpan.org |
From: | "Sanford Owings" <sanford.owings [...] gmail.com> |
Hello there,
I seem to have found an issue with GD::Graph 1.44. When plotting a
mixed graph, with a set of bars for one of the data sets, and
including shown values, the labels for those values are misaligned.
It seems that the label is one column width's offset to the right.
I've attached a script which demonstrates the issue. I've included a
border on the right side to make the labeling issue a bit more
apparent. I've tracked the issue to the draw_values method in
axestype.pm. Unfortunately, I don't know what the added code in
there--specifically regarding bar charts--was intended to achieve, so
I haven't provided a patch. Note that the attached script using
axestype.pm from version 1.43 labels the values properly.
This is occurring with perl 5.8.3 built on either Darwin (Leopard):
Darwin contrarian.air.base 9.2.2 Darwin Kernel Version 9.2.2: Tue Mar
4 21:17:34 PST 2008; root:xnu-1228.4.31~1/RELEASE_I386 i386
But also on Linux:
Linux bob-the-builder.land.base 2.6.9-42.ELsmp #1 SMP Wed Jul 12
23:27:17 EDT 2006 i686 athlon i386 GNU/Linux
Let me know if there's any other information I can provide.
Sanford
--
Sanford Owings
sanford.owings@gmail.com
Message body is not shown because sender requested not to inline it.