When I enable this module, I receive these two notices:

Notice: Undefined variable: type in charts_graphs_google_charts_chartgraph_provider() (line 12 of ...charts_graphs/apis/charts_graphs_google_charts/charts_graphs_google_charts.module).
Notice: Undefined variable: project in charts_graphs_google_charts_chartgraph_provider() (line 12 of ...charts_graphs/apis/charts_graphs_google_charts/charts_graphs_google_charts.module).

Note: I've removed the full path to the modules from these messages.

Comments

naeluh’s picture

I can confirm this. I am getting this warning also.

PatchRanger’s picture

Project: Google Chart Tools for Drupal » Charts and Graphs
Status: Active » Needs review
StatusFileSize
new730 bytes

It was easy to fix, please review.
Btw, it is not 'google_charts' issue, it is a small bug of 'charts_graphs' project.

brien’s picture

Applied this patch and now I get this Notice.

Notice: Undefined property: ChartsGraphsGoogleCharts::$legend_pos in ChartsGraphsGoogleCharts->_encode_data() (line 236 of

aaronbauman’s picture

Status: Needs review » Reviewed & tested by the community

patch in #2 solves the OP.
i did not get the notice reported in #3 after applying.

markbrule’s picture

I had the same OP, patch solved that. Everything was fine when I was on the views preview page. When I go to look at the full page, I get:

Notice: Undefined property: ChartsGraphsGoogleCharts::$legend_pos in ChartsGraphsGoogleCharts->_encode_data() (line 236 of .../sites/all/modules/charts_graphs/apis/charts_graphs_google_charts/charts_graphs_google_charts.class.inc).

Notice: Undefined property: ChartsGraphsGoogleCharts::$title_colour in ChartsGraphsGoogleCharts->_encode_data() (line 258 of .../sites/all/modules/charts_graphs/apis/charts_graphs_google_charts/charts_graphs_google_charts.class.inc).

This happens when I choose Google Charts as the engine, regardless of whether or not I have the "Show Legend" checked.

Sinovchi’s picture

I have the same problem as #5

anjjriit’s picture

I do :(

mshepherd’s picture

Status: Reviewed & tested by the community » Needs review
StatusFileSize
new1.03 KB

patch for the Undefined Property errors reported at #5.

leewoodman’s picture

Status: Needs review » Reviewed & tested by the community

I applied patches #2 and #8 and now i am getting this on the page where the graph is being output (i am using views charts):

Notice: Undefined index: chxt in ChartsGraphsGoogleCharts->_encode_data() (line 182 of /home/mysites/sites/all/modules/charts_graphs/apis/charts_graphs_google_charts/charts_graphs_google_charts.class.inc).

vivdrupal’s picture

On line 182 of sites/all/modules/charts_graphs/apis/charts_graphs_google_charts/charts_graphs_google_charts.class.inc, changing

if ($this->y_legend) {
to
if (isset($this->y_legend_axis)) {

Solved the issue in #9.

bazzly’s picture

I use patches 2 and 8 and now get:

Strict warning: Only variables should be passed by reference in ChartsGraphsGoogleCharts->_encode_data() (line 109 of /var/www/mysite/sites/all/modules/charts_graphs/apis/charts_graphs_google_charts/charts_graphs_google_charts.class.inc).

When I go to the page of my view.

Line 109 reads:
$max_y = $is_stacked ? 0 : reset(reset($series));

If I do a stacked chart there is no error, however if I do any other type of chart I get the error. (I need the bar chart)

dcmul’s picture

Status: Reviewed & tested by the community » Closed (fixed)

A fix has been applied on version 7.x-2.x. The the the charts_graphs_google_charts module can now be found at sandbox.