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