Skip to content

Commit

Permalink
fix(gantt): Set max exclude interval length to 5 years
Browse files Browse the repository at this point in the history
  • Loading branch information
sidharthv96 committed Sep 26, 2023
1 parent 5f5b216 commit 7cb1c2e
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') > 10) {
if (dayjs(maxTime).diff(dayjs(minTime), 'year') > 5) {
console.warn(
'The difference between the min and max time is more than 10 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 7cb1c2e

Please sign in to comment.