google / google-visualization-issues

288 stars 35 forks source link

document.getElementById("google.visualiation.MotionChart-0") is null #261

Open orwant opened 9 years ago

orwant commented 9 years ago
What would you like to see us add to this API?

What component is this issue related to (PieChart, LineChart, DataTable,
Query, etc)?

*********************************************************
For developers viewing this issue: please click the 'star' icon to be
notified of future changes, and to let us know how many of you are
interested in seeing it resolved.
*********************************************************

Original issue reported on code.google.com by tanu1002 on 2010-04-21 16:36:29

orwant commented 9 years ago
I am getting this same error in the console on the MotionChart.  I am running the FireFox
browser and  see the following in the error console when I click on the MotionChart:

Error: document.getElementById("google.visualization.MotionChart-0") is null

Original issue reported on code.google.com by dan.mccreary on 2011-01-27 22:37:09

orwant commented 9 years ago
I also noticed that the example MotionChart here:

http://code.google.com/apis/visualization/documentation/gallery/motionchart.html

Also generates this error in the console whenever you select any of the fruits in on
the right side of the chart.

Error: document.getElementById("google.visualization.MotionChart-0") is null
Source File: http://code.google.com/apis/visualization/documentation/gallery/motionchart.html
Line: 0

Original issue reported on code.google.com by dan.mccreary on 2011-01-27 22:41:59

orwant commented 9 years ago
Just for completeness, the following motion chart example in the user gallery also is
has errors when the item selector is checked:

http://code.google.com/apis/visualization/documentation/user_gallery.html

Original issue reported on code.google.com by dan.mccreary on 2011-01-27 22:49:28

orwant commented 9 years ago
Here's one way to get rid of it:
(a) add something for it to eat: <span id="google.visualization.MotionChart-0"></span>

then you get an error on the event handler on the thing. So then add:

(b)document.getElementById("google.visualization.MotionChart-0").onMouseUpOutsideSwf
 = function(){};

to squelch the event.

The example on the google site doesn't work (and it'll kill other JS on any page it's
in). I'd say fixing that isn't precisely an "enhancement", it's a defect fix!

Original issue reported on code.google.com by philip.wigglesworth on 2011-05-03 20:06:41