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

Comments

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. http://drupal.org/node/1823614

konforti’s picture

Committed http://drupalcode.org/project/google_chart_tools.git/commitdiff/01aba296... 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 ?

-G