I am very excited by this module; keep up the great work!

However, one problem that prevents me from starting to use it -- CHART_TYPE_MAP works fine as shown in the example here but only for up to 3 country codes!

E.g.
array('US','AU','BE'); ... works
array('US','AU','BG'); ... works
array('US','AU','BE','BG'); ... does not work!

Could you please have a look at this - I am sure it will be a simple little bug to fix.

Comments

tjholowaychuk’s picture

Hello, thanks for the comments!

I ran a quick test as you mentioned with more than 3 values:

 $chart = array(
      '#chart_id' => 'test_chart',
      '#type' => CHART_TYPE_MAP,         
      '#countries' => array('MG', 'KE', 'TN', 'CA'),   
      '#georange' => 'world',                 
      '#data' => array(10, 50, 100, 60),      
      '#data_colors' => array('ffffff', 'edf0d4', '13390a') 
    );

Although ugly, it did work haha. Here is the URI outputted:

http://chart.apis.google.com/chart?chd=t%3A10%2C50%2C100%2C60&cht=t&chs=...

vacilando’s picture

Status: Active » Fixed

I am awfully sorry: you are right, it works! I forgot about having to set the intensity values for each country.

tjholowaychuk’s picture

Not a problem! Had me scared there haha

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.