i am using react-chartjs-2 in a project and i am still trying to find a solution on how to color the evenly all the columns with the same logic of the image below
i found that chartjs has plugins -> annotations to do that, but it seems that is not working.
This the link to my codesandbox. what I would like to do is color the columns alternately regardless of the data it receives for the x and y axes (dates, numbers, strings), with the settings that the graph currently has. I've seen some people suggesting to use plugins -> annotations in chartjs but trying it doesn't work. Let me know if you can help me, thank you!
codesandbox.io/s/adoring-bohr-y59hm5?file=/src/CustomChart.js