Page 1 of 1

AddArray in Javascript

Posted: Wed Apr 22, 2009 6:41 am
by 9535497
Hello everybody!

Do you guys have any ideas how to apply AddArray function in javascript?
Following code is still bothering me with "invalid argument" error (line with addarray function):

function lala()
{
TChart1.AddSeries(0);

var dataX = new Array(39680.4122222222, 39680.4134722222, 39680.4147800926, 39680.4153125, 39680.427662037, 39680.431087963, 39680.4311689815, 39680.4321643518, 39680.4499768519, 0);
var data0 = new Array(910, 910, 910, 910, 888, 889, 886, 890, 895, 0);

TChart1.Series(0).AddArray(10, data0, dataX);
}


I would appreciate any help.
Thanx

Posted: Thu Apr 23, 2009 1:46 pm
by yeray
Hi zizou5,

We are investigating the issue to see what's happening here but in the meanwhile note that you could do what AddArray should do manually:

Code: Select all

for(i=0;i<10;i++) { Chart1.Series(0).AddXY(dataX[i], data0[i], "", 536870912); }

Posted: Fri Apr 24, 2009 5:24 am
by 9535497
Thank you very much for reply so far. I hope you'll find out what's the problem.