Gantt Chart Showing Extra Years

Is there a way to define the end date for a Gantt chart that is displayed in a dashboard from a report? I'm displaying an annual schedule of projects using Years/Months as the headers, and the gantt chart shows blank space from 2022-2024. I'd like to display only the timeline for which there's content.