Closed (fixed)
Project:
Charts and Graphs
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
23 Jul 2012 at 20:05 UTC
Updated:
26 Apr 2013 at 11:26 UTC
Jump to comment: Most recent file
Comments
Comment #1
naeluh commentedI can confirm this. I am getting this warning also.
Comment #2
PatchRanger commentedIt was easy to fix, please review.
Btw, it is not 'google_charts' issue, it is a small bug of 'charts_graphs' project.
Comment #3
brien commentedApplied this patch and now I get this Notice.
Notice: Undefined property: ChartsGraphsGoogleCharts::$legend_pos in ChartsGraphsGoogleCharts->_encode_data() (line 236 of
Comment #4
aaronbaumanpatch in #2 solves the OP.
i did not get the notice reported in #3 after applying.
Comment #5
markbrule commentedI 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.
Comment #6
Sinovchi commentedI have the same problem as #5
Comment #7
anjjriit commentedI do :(
Comment #8
mshepherd commentedpatch for the Undefined Property errors reported at #5.
Comment #9
leewoodman commentedI 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).
Comment #10
vivdrupal commentedOn 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.
Comment #11
bazzly commentedI 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)
Comment #12
dcmul commentedA fix has been applied on version 7.x-2.x. The the the charts_graphs_google_charts module can now be found at sandbox.