google / google-visualization-issues

288 stars 35 forks source link

Not all values are displayed in Motion Chart #287

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.

When this code is executed, "Large" gets dropped and "Small" only is
displayed in the chart (column Z):

function drawVisualization(){
var data = new google.visualization.DataTable();
data.addColumn('string', 'State');
data.addColumn('date', 'Date');
data.addColumn('string', 'Size');
data.addColumn('number', 'X');
data.addColumn('number', 'Y');
data.addColumn('number', 'Z');
var s = new Array();
s.push(['CA',new  Date ('05/01/2010'),'Small',8.7,0.3,9694]);
s.push(['NY',new  Date ('05/01/2010'),'Small',7.9,0.3,4266]);
s.push(['TX',new  Date ('05/01/2010'),'Small',9.5,0.3,2581]);
s.push(['CA',new  Date ('05/01/2010'),'Large',10.9,0.3,3252]); 
s.push(['NY',new  Date ('05/01/2010'),'Large',6.5,0.2,988]); 
s.push(['TX',new  Date ('05/01/2010'),'Large',12.3,0.3,776]); 
s.push(['CA',new  Date ('05/02/2010'),'Small',8.6,0.4,9697]); 
s.push(['NY',new  Date ('05/02/2010'),'Small',8.9,0.5,4271]);
s.push(['TX',new  Date ('05/02/2010'),'Small',9.2,0.4,2588]);
s.push(['CA',new  Date ('05/02/2010'),'Large',11.7,0.4,3225]);
s.push(['NY',new  Date ('05/02/2010'),'Large',7.7,0.3,998]);
s.push(['TX',new  Date ('05/02/2010'),'Large',13.5,0.5,734]);   
s.push(['CA',new  Date ('05/03/2010'),'Small',14.4,1.2,10237]); 
s.push(['NY',new  Date ('05/03/2010'),'Small',15.2,1.5,4476]);
s.push(['TX',new  Date ('05/03/2010'),'Small',18.0,1.5,2805]); 
s.push(['CA',new  Date ('05/03/2010'),'Large',14.4,0.9,3109]);
s.push(['NY',new  Date ('05/03/2010'),'Large',8.5,0.7,994]);
s.push(['TX',new  Date ('05/03/2010'),'Large',18.5,1.2,804]);

data.addRows(s);

 var chart = new 
google.visualization.MotionChart(document.getElementById('visualization'));
 chart.draw(data, {width: 600, height:300}); 
}

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

Motion Chart

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

Using Visualization Playground

What operating system and browser are you using?

Firefox 3.6.3

*********************************************************
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 yuri.g.bykov on 2010-05-18 20:43:12

orwant commented 9 years ago
Correction: "Small" gets dropped and "Large" only is displayed. 

Original issue reported on code.google.com by yuri.g.bykov on 2010-05-18 20:44:38

orwant commented 9 years ago
And it's actually column Size in the code. Sorry for the typos. Still the the core of
the issue is the same - values get dropped.

Original issue reported on code.google.com by yuri.g.bykov on 2010-05-18 20:50:48