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)`
- Chartjs-Stacked Horizontal Bars not in align Chart JS
- Chartjs-Plugin for custom horizontal line Y-axis marker on grid of a Line chart with Chart.js
Source:stackexchange.com