Re: GDGraph hbars problem
From: Bricklen (bricklen-rem_at_yahoo.comz)
Date: 06/25/04
- Next message: Gunnar Hjalmarsson: "Re: Advise on modules for internationalization"
- Previous message: F C: "Advise on modules for internationalization"
- In reply to: Bricklen: "GDGraph hbars problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 24 Jun 2004 22:15:11 GMT
Bricklen wrote:
> Has anyone had any problems with GD::Graph 1.43 hbars graphs?
> I have a graph that works fine as a bars graph, but then doesn't display
> the bars when it is converted to an hbars graph. If I change the dataset
> then it will work most times.
> I still haven't found a correlation between what will make it work, and
> what won't, although it _is_ consistent.
>
> Happens on both perl 5.8 and 5.6
>
> If you need any more details, I'll be happy to provide them.
Just to add a bit of a sloppy solution to this question, it turns out
that this line:
$self->{graph}->filledRectangle($l, $t, $r, $b, $dsci) if defined $dsci;
in GDGraph 1.43, bars.pm (approx. line 200), will have the $t and $b
values reversed for the (occasional) smaller results sets.
Not all small sets, just some. I couldn't determine what was causing
this, because the different sets of data being passed in were all
relatively the same.
The only fix that I could come up with was to add a handler that just
reversed the order of those two variables ($t,$b) if the $b<$t,
eg.
$self->{graph}->filledRectangle($l, $b, $r, $t, $dsci) if defined $dsci;
If anyone could shed more light on this, that would be great.
Cheers,
Bricklen
- Next message: Gunnar Hjalmarsson: "Re: Advise on modules for internationalization"
- Previous message: F C: "Advise on modules for internationalization"
- In reply to: Bricklen: "GDGraph hbars problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|