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: 69691
Status: resolved
Priority: 0/
Queue: SVG-TT-Graph

People
Owner: Nobody in particular
Requestors: dean [...] fragfest.com.au
Cc:
AdminCc:

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



Subject: Minor annoyance in the __DATA__ template
Hello if i add_data, and omit a title - rather than getting an error or something, there is a cryptic Argument "" isn't numeric in numeric lt (<) at input text line 191, <DATA> line 505. Argument "" isn't numeric in numeric lt (<) at input text line 191, <DATA> line 505. Argument "" isn't numeric in numeric lt (<) at input text line 191, <DATA> line 505. Argument "" isn't numeric in numeric lt (<) at input text line 191, <DATA> line 505. Argument "" isn't numeric in numeric lt (<) at input text line 191, <DATA> line 505. Argument "" isn't numeric in numeric lt (<) at input text line 191, <DATA> line 505. Argument "" isn't numeric in numeric lt (<) at input text line 191, <DATA> line 505. Argument "" isn't numeric in numeric lt (<) at input text line 191, <DATA> line 505. Argument "" isn't numeric in numeric lt (<) at input text line 191, <DATA> line 505. Argument "" isn't numeric in numeric lt (<) at input text line 191, <DATA> line 505. Argument "" isn't numeric in numeric lt (<) at input text line 191, <DATA> line 505. this is because this section assumes title exists [% IF max_key_size < dataset.title.length %] [% max_key_size = dataset.title.length %] [% END %]
Hi, Could you please provide a short script that illustrates this problem? What type of graph were you using? Do you have the issue for all 6 graph types? Thanks, Florent PS/ Patches are welcome!
On Sun Jul 24 02:51:12 2011, FANGLY wrote: Show quoted text
> Hi, > > Could you please provide a short script that illustrates this problem? > What type of graph were you using? Do you have the issue for all 6 graph > types? > > Thanks, > > Florent > > PS/ Patches are welcome!
here is an example, which ive created based on the pod for Line.pm --- use warnings; use strict; use SVG::TT::Graph::Line; my @fields = qw(Jan Feb Mar); my @data_sales_02 = qw(12 45 21); my @data_sales_03 = qw(15 30 40); my $graph = SVG::TT::Graph::Line->new({ 'height' => '500', 'width' => '300', 'fields' => \@fields, }); $graph->add_data({ 'data' => \@data_sales_02, 'title' => 'Sales 2002', }); $graph->add_data({ 'data' => \@data_sales_03, # note. typo here... 'titl' => 'Sales 2003', }); print "Content-type: image/svg+xml\n\n"; print STDERR $graph->burn();
Thanks for the example. I was able to fix the bug. I committed the changes to the development repository. Florent