Skip Menu |
 

This queue is for tickets about the Chart CPAN distribution.

Report information
The Basics
Id: 8175
Status: new
Priority: 0/
Queue: Chart

People
Owner: Nobody in particular
Requestors: Foerstemann [...] web.de
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 2.3
Fixed in: (no value)



Subject: Wrong placement of x-ticks, if xy_plot is used without custom_x_ticks
Download (untitled) / with headers
text/plain 308b
All x-ticks are placed on the left side of the chart, if non-combined diagrams are created with xy-plot set and custom_x_ticks unset. The problem is caused by Chart::Base::_draw_x_number_ticks: the initialization of $delta in line 2424 will never happen because of a strange if condition. See attached diff.
Download Base.diff
text/x-diff 205b
2424c2424 < #$delta = $width / ($self->{'x_number_ticks'}-1 ) if ( defined $self->{'x_tick_labels'} > 1 ); --- > $delta = $width / ($self->{'x_number_ticks'}-1 ) if ( defined $self->{'x_tick_labels'} );


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.