score:1

Accepted answer

it looks like it is the issue with incorrect use of a callback and a for loop. each formatter callback creates a closure which has access to the same variable i - which, when the loop ends, is equaled to json.data.length.

use a foreach kind of loop which will create a seperate i variable for each chart.

compare foreach http://jsfiddle.net/9eezsx7v/ with for loop http://jsfiddle.net/9eezsx7v/1/


Related Query

More Query from same tag