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