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