I gave this module a spin by installing Google Chart API (Chart API has had poor results in my experience). After installing the latest stable of Google Chart API (7.x-1.0-beta2) and following the instructions in README.txt to find the hidden settings page (thanks for that tip), I end up with these errors when viewing the Results -> Chart tab on my forms.
For every chart shown, I get these two PHP errors:
Notice: Undefined index: component in _webform_chart_backend_googleapilibs_config() (line 25 of /Users/nate/Sites/drupal7/sites/all/modules/webform_chart/includes/googleapilibs.inc).
Warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object in _webform_chart_backend_googleapilibs_config() (line 25 of /Users/nate/Sites/drupal7/sites/all/modules/webform_chart/includes/googleapilibs.inc).
The charts themselves still seem to work just fine however. I tried area, pies and bar charts, all seem to have the same error on the same line numbers.
| Comment | File | Size | Author |
|---|---|---|---|
| webform-chart-errors.png | 267.51 KB | quicksketch |
Comments
Comment #1
hotspoons commentedYes, I just realized that I had error reporting to the screen turned off since I had cloned a production system to do the development. This should be pretty easy to fix, let me give it a go.
Comment #2
hotspoons commentedIt was a pretty simple fix. Now it should work without belching a bunch of errors. I committed the fix to head. Thanks!
Comment #3
hotspoons commentedMarking fixed.