Skip to content

Commit

Permalink
Revert "fix: Reduce gantt exclude days length"
Browse files Browse the repository at this point in the history
This reverts commit 2bde5ad.
  • Loading branch information
sidharthv96 committed Oct 6, 2023
1 parent 54d7b57 commit 157c90e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/mermaid/src/diagrams/gantt/ganttRenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -520,9 +520,9 @@ export const draw = function (text, id, version, diagObj) {
return;
}

if (dayjs(maxTime).diff(dayjs(minTime), 'year') > 1) {
if (dayjs(maxTime).diff(dayjs(minTime), 'year') > 5) {
log.warn(
'The difference between the min and max time is more than 1 years. This will cause performance issues. Skipping drawing exclude days.'
'The difference between the min and max time is more than 5 years. This will cause performance issues. Skipping drawing exclude days.'
);
return;
}
Expand Down

0 comments on commit 157c90e

Please sign in to comment.