AddArray in Javascript

TeeChart for ActiveX, COM and ASP
Post Reply
zizou5
Newbie
Newbie
Posts: 17
Joined: Mon Jun 11, 2007 12:00 am
Contact:

AddArray in Javascript

Post by zizou5 » Wed Apr 22, 2009 6:41 am

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

Yeray
Site Admin
Site Admin
Posts: 9587
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Post by Yeray » Thu Apr 23, 2009 1:46 pm

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); }
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

zizou5
Newbie
Newbie
Posts: 17
Joined: Mon Jun 11, 2007 12:00 am
Contact:

Post by zizou5 » Fri Apr 24, 2009 5:24 am

Thank you very much for reply so far. I hope you'll find out what's the problem.

Post Reply