Add series with x,y,lablelvalue

TeeChart for JavaScript for the HTML5 Canvas
Post Reply
jls
Newbie
Newbie
Posts: 56
Joined: Mon May 07, 2012 12:00 am
Location: Norway

Add series with x,y,lablelvalue

Post by jls » Fri Sep 28, 2012 1:55 pm

Is it possible to add values to a series with y,x value and x label value?


Jørgen

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

Re: Add series with x,y,lablelvalue

Post by Yeray » Fri Sep 28, 2012 3:38 pm

Hi Jørgen,

I'm afraid there's a function to add the three arrays at once, but you can add the y values and the labels at once, and then assign the data.x array.
Ie:

Code: Select all

  Chart1.addSeries(new Tee.Line([5,3,2,7], ["point1","point2","point3","point4"]));
  Chart1.series.items[0].data.x=[2,4,5,6];
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

Post Reply