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
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.
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'} );