To test things I wrote code below for generating a dummy chart but that too 
is failing:

var data = new google.visualization.DataTable();
data.addColumn('string', 'X');
data.addColumn('number', 'Y');
for(var i=0;i<20;i++){
data.addRow(['tenant'+i, (10+i)]);
}
var view = new google.visualization.DataView(data);
var options = {
title : ' Demo chart',
hAxis: {title: 'X'},
vAxis : { title : "Y" },
animation:{
startup: true,
        duration: 1000,
        easing: 'out',
    },
    pointSize: 5,
    width : 1500,
height : 1200
};
var chart = new google.visualization.LineChart($('#dummy_chart')[0]);
chart.draw(view, options);

Bottomline is, I am using addRow() function to add individual record and 
it's failing, which was working just fine.


On Monday, February 23, 2015 at 6:29:56 PM UTC+8, Nisarg Panchal wrote:
>
> Hi,
>
> I have developed a small application to generate graphs for performance 
> monitoring. The graphs were working just fine until last time 18th Feb 
> 2015. Today when I cleared cache and reloaded - the same code no longer 
> works!
>
> I also started getting issues for e.g. I was using a hack data.Pf.length 
> to check how many columns are there in a DataTable since I am 
> programmatically adding columns. But now the same property is changed to 
> DataTable.If 
> (I know we do have getNumberOfColumns() function), but this is just to 
> highlight the issue better.
>
> I am having correct data sets in terms of CSV files but unfortunately all 
> of them are failing :
>
> Cannot read property '1' of undefined
>
>
> I am not sure where am I going wrong, any guidance related to most recent 
> changes would be great. I even tried addRows with hardcoded scalar data in 
> the required format but that too is giving same issue as above.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/d/optout.

Reply via email to