google / google-visualization-issues

288 stars 35 forks source link

Bug: Trails crash browser and can't disable the trail #1031

Open orwant opened 9 years ago

orwant commented 9 years ago
What steps will reproduce the problem? Please provide a link to a
demonstration page if at all possible, or attach code.
1. The trail crashes is a well known issue as shown in 
http://svn.eionet.europa.eu/projects/Zope/ticket/5013
The default code is added as: 
http://svn.eionet.europa.eu/projects/Zope/changeset/26972

2.Use
https://code.google.com/apis/ajax/playground/?type=visualization#motion_chart
add option to hide trail, since google api doesn't hide trails by default

The added code is: 
  var options =  {'width': 800, 'height': 400};

  +options['state'] = '{"showTrails":false};';
  motionchart.draw(data,options);

3. Run the code and still shows the Trails checkbox, as well as select list for trails.

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

Are you using the test environment (version 1.1)? not sure.
(If you are not sure, answer NO)

What operating system and browser are you using?
Firefox, windows7

*********************************************************
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 sabrinanyu on 2012-09-25 22:39:47

orwant commented 9 years ago
Above testing code is incorrect, it should be: 
  document.getElementById('visualization'));

  var options = {'width': 800, 'height': 400, 'state': {"showTrails":false} };  
  motionchart.draw(data, options);

Original issue reported on code.google.com by sabrinanyu on 2012-09-25 22:46:06