Subject: | color/label defined in data series not respected. |
Date: | Fri, 7 Aug 2009 11:52:32 -0700 |
To: | bug-URI-GoogleChart [...] rt.cpan.org |
From: | Jianing Hu <jianing [...] gmail.com> |
Hi There,
I'm having a problem where the color and label defined in data series
are not in the generated URL. e.g.:
warn URI::GoogleChart->new(
'line', 400, 300,
encoding => 's',
data => [
{
color => 'red',
label => 'red',
v => ['0','7','5','9','22','13'],
}
]
);
prints http://chart.apis.google.com/chart?cht=line&chs=400x300&chd=s:ATNY9k
but if the color/label are defined outside of data series then it works:
warn URI::GoogleChart->new(
'line', 400, 300,
encoding => 's',
data => [
{
v => ['0','7','5','9','22','13'],
}
],
color => 'red',
label => 'red'
);
prints http://chart.apis.google.com/chart?cht=line&chs=400x300&chco=FF0000&chdl=red&chd=s:ATNY9k
Thanks,
- Jianing