cool module, had no problems generating line charts, etc.
I would like the show a GeoChart but it doesn't seem to work.
I have 2 fields in my view, "Country" and "Members". I can show them as LineChart or BarChart. Country is the 2 digit country code.
When I change to "GeoChart" I get a js error:

if (element) {
            chart[settings.chart[chartId]] = new google.visualization[settings.chart[chartId].chartType](element);
Uncaught TypeError: undefined is not a function


konforti’s picture

Category: bug » feature

Right, there is no support right now for GeoChart, and it's needs to be take care of.

jaysonjaynes’s picture

Is there a plan to incorporate GeoChart in the future? Does anyone know of another module that supports GeoChart?

koppie’s picture

Jayson according to my research, there is no Drupal module that supports geochart. I will be keeping an eye on this thread to see if that changes. :-)

jaysonjaynes’s picture

Hey koppie, here's a thread for Views Dataviz that gives a way of doing it for that module. I'm going to try it myself.

konforti’s picture

Committed to DEV.
It should be possible now to use the Geo Chart. For example:

$settings['chart']['chartOne'] = array(  
    'header' => array("Germany", "United States", "Brazil", "Canada", "France", "RU" ),
    'rows' => array(array('200', '300', '400', '500', '600', '700')),
    'columns' => array("Population"),
    'chartType' => 'GeoChart',
    'containerId' =>  'content',
    'options' => array( 
      'forceIFrame' => FALSE, 
      'title' => 'Geo Chart',
      'width' => 800,
      'height' => 400,
      'backgroundColor' => 'B1E7F2'

  //Draw it.
  $ret = draw_chart($settings); 

Please test and review, Thanks.

glajman’s picture

Issue summary: View changes

Is the GeoChart type option still available ? I just downloaded 7.x-1.4 and dont see the option when creating a view.

Can it be used only via API ?


johnkareoke’s picture

If anyone is still looking for this, please take a look at this related issue/patch, review and test so that it can get committed.

Allow Geocharts to be rendered with Views

johnkareoke’s picture

Status: Active » Needs review