Skip Menu |

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

Report information
The Basics
Id: 42260
Status: open
Priority: 0/
Queue: Google-Chart

People
Owner: Nobody in particular
Requestors: eric [...] ashmont.net
Cc:
AdminCc:

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



Subject: Google::Chart::Data::Simple doesn't work as expected...
Date: Fri, 9 Jan 2009 16:37:22 -0500
To: bug-Google-Chart [...] rt.cpan.org
From: "Eric Barry" <eric [...] ashmont.net>
This is my working chart: my $chart = Google::Chart->new( type => "Line", size => "400x300", data => Google::Chart::Data::Extended->new( max_value=> 150, dataset => [ 1,50,60,20,10,130 ], ), ); If I replace the object "extended" with the "text" object and remove the "max_value" param, I also get a graph url. Unfortunately, If I leave it like it is and replace "Extended" with "Simple" there is the following error: Attribute (data) does not pass the type constraint because: Validation failed for 'Google::Chart::Data' failed with value Google::Chart::Data::Simple=HASH(0x69aa930) Am I calling this wrong? Could I suggest some more documentation with more robust examples? I am not a brilliant man, nor before working with your code was I familiar with "moose", so I might be an edge case...but then again, I might not. The biggest barrier to me using your code was getting the syntax correct - otherwise I think it is awesome and I am happy that it exists. Best, Eric
Show quoted text
> Am I calling this wrong?
no, G::C::D::Simple was missing a with() call, and tests. I added a call for it so a minimalist test works (new version coming to CPAN soon), but unfortunately I currently don't really have the time to work on this module much at this moment. Ron Pero is also planning to work on refactoring some of the API issues, so if you are willing to contribute, I'll see if I can at least coordinate with you guys to improve Google::chart.