MaTeMaTuK / gantt-task-react

Gantt chart for React with Typescript
MIT License
847 stars 471 forks source link

Today Color Issue in Different Gantt Chart Views #210

Closed sarawuthjdp closed 11 months ago

sarawuthjdp commented 11 months ago

I am currently working on implementing a Gantt chart using the "gantt-task-react" library in my React application. I have configured the Gantt chart to highlight the "today" column with a specific background color in the day view, which works as expected.

However, I've noticed that in other views such as hour and quarter-day, the "today" color does not fill the entire day column, which is causing some visual inconsistencies. In these views, the color is only applied to a part of the day, leaving the rest of the column without the background color.

To reproduce the issue, follow these steps:

  1. Set up a Gantt chart with the "gantt-task-react" library.
  2. Configure the chart to highlight the "today" column with a background color.
  3. Switch to the hour or quarter-day view.

I expected the "today" color to fill the entire day column, regardless of the selected view (hour, quarter-day). This would ensure a consistent and visually pleasing representation of the current day.

In the hour and quarter-day views, the "today" color is not filling the entire day column, which results in a visual inconsistency. image

Thank you for your assistance in addressing this issue!

sarawuthjdp commented 11 months ago

My misunderstanding, its working correctly