Adding columns at the end of the chart

Mon at 8:11 AM
First, Thanks for the code! It's really useful for my application :)

Have you any idea of how I could change the code to have more visible columns at the end of the chart?
Right now, It looks like it's searching for the latest date of active tasks and it adds 8 columns.

Thank you in advance!