Hi Glenn,
Create an array and 'push' each hash of plot data onto it. When the
loop is complete, pass the now complete array...
$.getJSON('/Graph/HearthRateDataJSON', , function(data) {
var data= [ ];
$.each(data, function(entryindex, entry) {
data.push( { Name: entry['Name'],
OOPS, I didn't formatted the data correctly for passing to Plot() -
sorry, didn't read carefully. But the premise is the same - create an
array by looping your data, and then pass the array when done.
/Kevin
On Aug 30, 9:04 am, Kevin Dalman kevin.dal...@gmail.com wrote:
Hi Glenn,
Create an
Kevin,
Thanks for the info!!!
The .push method is something new for me and it is a very good
solution for my problem.
Greets
Glenn
On Aug 30, 6:07 pm, Kevin Dalman kevin.dal...@gmail.com wrote:
OOPS, I didn't formatted the data correctly for passing to Plot() -
sorry, didn't read carefully.
3 matches
Mail list logo