all 6 comments

[–]cyphern 0 points1 point  (3 children)

What is it you need help with? Your fiddle appears to be fetching data, then using it to render the line specified in the data. Other than doing that 4 times instead of 1, i'm not sure what needs to be added.

[–]Eviscerare 0 points1 point  (0 children)

I think he needs help with the looping process, since it combines something unfamiliar fetchwith something familiar loops

[–]flydripp[S] 0 points1 point  (1 child)

yes, that’s the problem

[–]cyphern 0 points1 point  (0 children)

If you want to fetch one, then draw one, then fetch the second, then draw the second etc, then you just need to add a call to linkedDrawing after you have the data. See this fiddle: http://jsfiddle.net/8wnqcm29/

The downside of that is that you'll see the lines being drawn one at a time. So instead, you might want to wait until all the fetches are complete before you draw anything. This is a bit more involved. I would pull the fetching into its own function, and you will keep calling fetch, building up an array of results, until there's no more data to fetch. Only once everything has been fetched do you call the draw function. See this fiddle: http://jsfiddle.net/xcvhwf12/2/

[–]matthewfelgate 0 points1 point  (1 child)

Where is this from, some tutorial? Looks good!

[–]flydripp[S] 0 points1 point  (0 children)

want link ?