Chartjs-Chart.js updating multiple charts

0👍

I am very stupid for not noticing but I didn’t change the variable when I copied it
It should be like this: :facepalm:

`birdCount = document.getElementsByClassName("bird").length
    addData(chart, [Generation], [birdCount], 0)
    var birdCountST = document.getElementsByClassName("bird11").length + document.getElementsByClassName("bird12").length
    console.log(birdCountST,'shortthickguys')
    addData(chart, [Generation], [birdCountST], 1)
    var birdCountLT = document.getElementsByClassName("bird21").length + document.getElementsByClassName("bird22").length
    addData(chart, [Generation], [birdCountLT], 2)`

Leave a comment