You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 24, 2024. It is now read-only.
We have received a complaint from a client about tasks being drawn extremely skinny:
Looking into this, I found that there is no problem with the data that is generating that task - it is technically correct - but that we need to support a minimum width on tasks to prevent that situation. Currently, Gantt supports a "chunk" task which I believe was intended to enforce a minimum width on tasks. However this only works if the start and end dates are identical, which I believe can be considered a bug since a truly robust enforcement of minimum width would have to compare to the start/end dates of the graph itself to determine expected size.
Graphs affected
Bar graph
Bubble graph
Gantt chart
Line graph
Paired result
Pie chart
Scatter plot
Timeline
Steps to Reproduce
Render a Gantt graph
Draw a task with start and end dates only 1 minute apart
Bug Report
Description
We have received a complaint from a client about tasks being drawn extremely skinny:

Looking into this, I found that there is no problem with the data that is generating that task - it is technically correct - but that we need to support a minimum width on tasks to prevent that situation. Currently, Gantt supports a "chunk" task which I believe was intended to enforce a minimum width on tasks. However this only works if the start and end dates are identical, which I believe can be considered a bug since a truly robust enforcement of minimum width would have to compare to the start/end dates of the graph itself to determine expected size.
Graphs affected
Steps to Reproduce
Link to CodeSandbox
https://codesandbox.io/s/empty-fast-ch35j
Additional Context / Screenshots
Expected Behavior
I would expect the same minimum chunk width to get applied in this scenario
Possible Solution
Environment
@ Mentions