Add A Single Date, Value point to a Tee.Line object
Posted: Wed May 11, 2016 10:46 pm
I looked at all the examples and they use AddRandom or pre-populate with Arrays or TextBoxes and such --
I pull a JSON array from a web service then need to iterate through the array and add the values to a Tee.Line object below.
The reason I don't just set the array as a datasource is it has many fields and I only want date and value.
I'm sure this is obvious and I overlooked it but any help would be appreciated --
Thanks.
ja
I pull a JSON array from a web service then need to iterate through the array and add the values to a Tee.Line object below.
The reason I don't just set the array as a datasource is it has many fields and I only want date and value.
I'm sure this is obvious and I overlooked it but any help would be appreciated --
Thanks.
ja
Code: Select all
Chart1 = new Tee.Chart("canvas");
var tlForecast = new Tee.Line();
Chart1.addSeries(tlForecast);
//This doesn't work
//tlForecast.add(new Date('2/9/1967'), 888);
//This works
tlForecast.addRandom(20);
Chart1.draw();