I have a webpage that displays graphs using Google Charts. I've created multiple DataTables as below :
var rttldata1 = new google.visualization.DataTable();
var rttldata2 = new google.visualization.DataTable();
var rttldata3 = new google.visualization.DataTable();
...
var rttldata10 = new google.visualization.DataTable();
At a certain point, I want to do something to all of these tables with javascript.
Something like
for each (datatable){
do something
}
Can some one point me in the right direction please?
First you will want to encapsulate the instantiation of each DataTable within a function to stay DRY and add to an array. Then you can loop through each object.