I\'m using push function in javascript.
var chartData = [];
for(var i=0; i<3; i++) {
chartData.push({
date: new Date(year_s,mon_s,date_s,hr_s,mi
You have to make it in two steps :
var chartData = [];
for(var i=0; i<3; i++) {
// 1. create the object
var d = {
date: new Date(year_s,mon_s,date_s,hr_s,min_s,sec_s),
customBullet: show_annotations,
balloonTextField: "testtesttest"
};
// 2. then assign the visits_i property
d['visits_'+i] = chartData1[selection[i]][j].value;
chartData.push(d);
}