@JS
I apologize for my poor explanation.
It is because the first bar of every day needs to be bar 1 and then count from there.
I should have mentioned: In the screenshot, the days are seperated by the alternating color (grey/white). I have added some text in the screenshot to describe the problem.
@JS
Thank you for your code snippet. I found out changing count = 0 to count = 1 makes the first bar of the day bar 1 every day.
I appreciate it, as I am not good at coding.