Page 1 of 1

Add series with x,y,lablelvalue

Posted: Fri Sep 28, 2012 1:55 pm
by 16562340
Is it possible to add values to a series with y,x value and x label value?


Jørgen

Re: Add series with x,y,lablelvalue

Posted: Fri Sep 28, 2012 3:38 pm
by yeray
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];