Skip Menu |

This queue is for tickets about the URI-GoogleChart CPAN distribution.

Report information
The Basics
Id: 48588
Status: resolved
Priority: 0/
Queue: URI-GoogleChart

People
Owner: Nobody in particular
Requestors: sbrandwood [...] opera.com
Cc:
AdminCc:

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



Subject: Incorrect use of labels for maps
When producing maps, I wish to specify labels for the countries, doing so like this: label => ["US", "RU"], But this produces a list chdl=RU%7CUS which is incorrect, as maps lists aren't separated by '|'. If I instead do: label => join("", "US" "RU"), this produces: chdl=RUUS but the attribute is front. It should be chld instead. The workaround is: $url =~ s/chdl/chld/;
The current "interface" is to just specify chld directly, that is: URI::GoogleChart->new("europe", 300, 150, color => ["white", "green", "red"], background => "EAF7FE", # water blue # nordic populations chld => "NOSEDKFIIS", data => [4.5e6, 9e6, 5.3e6, 5.1e6, 307261], ); or ... chld => join("", @countries), ... if you want. Since "label" already has a meaning I don't really want to reuse it. We could potentially make chld able to take an array reference or introduce a new field to make it easier to work with maps.
From: sbrandwood [...] opera.com
Oh ok, that's fine. I was about to suggest you add that to an example, until i came across the official example page, which has everything I need: http://cpansearch.perl.org/src/GAAS/URI-GoogleChart-1.02/examples.html I was using some random blogpost which didn't have a proper map example. Thanks!
This is the worst bug manager I've ever used.