mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-26 02:39:41 +02:00
fix: make gantt chart interval weeks start on monday instead of sunday
This commit is contained in:
@@ -13,7 +13,7 @@ import {
|
|||||||
timeMinute,
|
timeMinute,
|
||||||
timeHour,
|
timeHour,
|
||||||
timeDay,
|
timeDay,
|
||||||
timeWeek,
|
timeMonday,
|
||||||
timeMonth,
|
timeMonth,
|
||||||
} from 'd3';
|
} from 'd3';
|
||||||
import common from '../common/common.js';
|
import common from '../common/common.js';
|
||||||
@@ -572,7 +572,7 @@ export const draw = function (text, id, version, diagObj) {
|
|||||||
bottomXAxis.ticks(timeDay.every(every));
|
bottomXAxis.ticks(timeDay.every(every));
|
||||||
break;
|
break;
|
||||||
case 'week':
|
case 'week':
|
||||||
bottomXAxis.ticks(timeWeek.every(every));
|
bottomXAxis.ticks(timeMonday.every(every));
|
||||||
break;
|
break;
|
||||||
case 'month':
|
case 'month':
|
||||||
bottomXAxis.ticks(timeMonth.every(every));
|
bottomXAxis.ticks(timeMonth.every(every));
|
||||||
@@ -611,7 +611,7 @@ export const draw = function (text, id, version, diagObj) {
|
|||||||
topXAxis.ticks(timeDay.every(every));
|
topXAxis.ticks(timeDay.every(every));
|
||||||
break;
|
break;
|
||||||
case 'week':
|
case 'week':
|
||||||
topXAxis.ticks(timeWeek.every(every));
|
topXAxis.ticks(timeMonday.every(every));
|
||||||
break;
|
break;
|
||||||
case 'month':
|
case 'month':
|
||||||
topXAxis.ticks(timeMonth.every(every));
|
topXAxis.ticks(timeMonth.every(every));
|
||||||
|
Reference in New Issue
Block a user