I have a variable
var chartData = [];
I have entered a few datas in that variable as inside a for loop :
for(i=0;i<31;i++)
var newDate = new Date(firstDate);
newDate.setDate(newDate.getDate() + i);
i++;
chartData.push({
date: newDate,
visits: i
});
The datas have entered in the array. but now i want to access those datas in a table again applying a for loop to make table rows. how to do that? I tried
document.write= " <tr> <td style='width:25%'>" + chartData.date[i] + " </td> <td style='width:25%'>" + chartData.visits[i] + "</td> <td style='width:25%'> " + chartData.visits[i]*i + " </td> <td style='width:25%'> " + chartData.visits[i]*chartData.visits[i] + " </td> </tr>";
But Couldnt get the datas... help needed. thankyou in advance..
itwice in the loop. Was that indended?