mirror of
				https://github.com/mermaid-js/mermaid.git
				synced 2025-11-04 12:54:08 +01:00 
			
		
		
		
	Merge pull request #4634 from leinelissen/develop
feat: allow specifying on which weekday a tickInterval should start
This commit is contained in:
		@@ -257,6 +257,20 @@ The pattern is:
 | 
			
		||||
 | 
			
		||||
More info in: <https://github.com/d3/d3-time#interval_every>
 | 
			
		||||
 | 
			
		||||
Week-based `tickInterval`s start the week on sunday by default. If you wish to specify another weekday on which the `tickInterval` should start, use the `weekday` option:
 | 
			
		||||
 | 
			
		||||
```mermaid-example
 | 
			
		||||
gantt
 | 
			
		||||
  tickInterval 1week
 | 
			
		||||
  weekday monday
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
```mermaid
 | 
			
		||||
gantt
 | 
			
		||||
  tickInterval 1week
 | 
			
		||||
  weekday monday
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
## Output in compact mode
 | 
			
		||||
 | 
			
		||||
The compact mode allows you to display multiple tasks in the same row. Compact mode can be enabled for a gantt chart by setting the display mode of the graph via preceeding YAML settings.
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user