Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the SVG-TT-Graph CPAN distribution.

Report information
The Basics
Id: 20165
Status: rejected
Priority: 0/
Queue: SVG-TT-Graph

People
Owner: Nobody in particular
Requestors: robin.berjon [...] gmail
Cc:
AdminCc:

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



Subject: Division by zero on unusual data
Hey, there's a small bug in the TimeSeries version. If there is only one item to plot, there will be a division by zero at some point in the template. This is due to the following line: $self->{calc}->{timescale_range} = $self->{calc}->{max_timescale_value} - $self->{calc}-> {min_timescale_value}; I haven't checked but it probably happens for the scale_value as well. Granted, plotting a single value is hardly dead useful, but still it happened to me while testing, and the module could handle it more gracefully. Thanks for the cool stuff! -- --darobin
From: Leo
Patch requested
No patch available at the moment - happy to take one if someone really has the need - but could easily validate the data being used before it's passed in.