score:0

Accepted answer

i figured it out for anyone having the same situation.

it seems that having the d3.json block of code inside the for loop will not work, as it will wait for the loop to finish and some weird things happen.

instead i added the for loop inside the d3 block and looped through my variables that way.

d3.json("data/combined.json", function (data) {

        for(var i = 0; i < max; i++)
        {

Related Query

More Query from same tag