I solved it like this:
I had to assign an id to each chart in the input data. Is there a better way to solve this ?
PS: Im using Jsrender
hi! your solution looks good and makes sense. i think it is great because it is simple, easy to understand so i don't think there is a better way to do it, your solution is fine.