Skip Menu |

This queue is for tickets about the SWF-Chart CPAN distribution.

Report information
The Basics
Id: 20424
Status: new
Priority: 0/
Queue: SWF-Chart

Owner: Nobody in particular
Requestors: code [...]

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

Subject: Unable to use dates as date
MIME-Version: 1.0
X-Mailer: MIME-tools 5.418 (Entity 5.418)
Content-Type: text/plain; charset="utf8"
Content-Disposition: inline
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 686
Download (untitled) / with headers
text/plain 686b
If you supply the data with dates like '2006-04-04' it treats this as a number not as a string. Problem is in _xml_chart_data_row, suggested fix below sub _xml_chart_data_row { my $self = shift; my ($row) = @_; my $output = '<row>'; if ($row->[0]) { $output .= '<string>'.$row->[0].'</string>'; } else { $output .= '<null/>'; } foreach my $n (@$row[1..$#$row]) { $n ||= '' unless defined $n; if ( $n =~ m/[^0-9]/ ) { $output .= "<string>$n</string>"; } else { $output .= "<number>$n</number>"; } } $output .= '</row>'; return $output; } Ive tried this and it works :)

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

Please report any issues with to