Custom Date Range filters in Gantt chart



I have a requirement to display custom date range filters in the gantt chart. The values of that filter will be as follows:

  • Last Year
  • Current Year
  • Last 6 Months
  • Last 2 Quarters
  • Next Year

When user clicks on any option, the chart will be filtered out based on that. I came across this question Date Filter gantt based on date but we need to hardcode date range.

Could you please let me know on how to achieve this