Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Welcome to the Power Users community on Codidact!

Power Users is a Q&A site for questions about the usage of computer software and hardware. We are still a small site and would like to grow, so please consider joining our community. We are looking forward to your questions and answers; they are the building blocks of a repository of knowledge we are building together.

Post History

50%
+0 −0
Q&A Centre tick labels in mermaid/gantt diagram

As a quick and very dirty hack, one could stick some invisible characters, like em-spaces (U+2003), in front of the date. ```mermaid gantt tickInterval 1day axisFormat                        ...

posted 11mo ago by samcarter‭  ·  edited 11mo ago by samcarter‭

Answer
#4: Post edited by user avatar samcarter‭ · 2024-02-02T19:33:27Z (11 months ago)
  • As a quick and very dirty hack, one could stick some invisible characters, like em-spaces (U+2003), in front of the date. Scroll to the right to see the label text.
  • ````
  • ```mermaid
  • gantt
  • tickInterval 1day
  • axisFormat                                    %d %b
  • dateFormat DD-MM
  • TUG :a2, 19-07, 3d
  • ```
  • ````
  • As a quick and very dirty hack, one could stick some invisible characters, like em-spaces (U+2003), in front of the date.
  • ````
  • ```mermaid
  • gantt
  • tickInterval 1day
  • axisFormat                                    %d %b
  • dateFormat DD-MM
  • TUG :a2, 19-07, 3d
  • ```
  • ````
  • (if your screen is very small, scroll to the right to see the label text)
#3: Post edited by user avatar Michael‭ · 2024-02-02T19:32:44Z (11 months ago)
Label is offscreen. Add a hint. =)
  • As a quick and very dirty hack, one could stick some invisible characters, like em-spaces (U+2003), in front of the date:
  • ````
  • ```mermaid
  • gantt
  • tickInterval 1day
  • axisFormat                                    %d %b
  • dateFormat DD-MM
  • TUG :a2, 19-07, 3d
  • ```
  • ````
  • As a quick and very dirty hack, one could stick some invisible characters, like em-spaces (U+2003), in front of the date. Scroll to the right to see the label text.
  • ````
  • ```mermaid
  • gantt
  • tickInterval 1day
  • axisFormat                                    %d %b
  • dateFormat DD-MM
  • TUG :a2, 19-07, 3d
  • ```
  • ````
#2: Post edited by user avatar samcarter‭ · 2024-02-02T17:45:19Z (11 months ago)
  • As a quick and very dirty hack, one could stick some invisible characters, like em-spaces, in front of the date:
  • ````
  • ```mermaid
  • gantt
  • tickInterval 1day
  • axisFormat                                    %d %b
  • dateFormat DD-MM
  • TUG :a2, 19-07, 3d
  • ```
  • ````
  • As a quick and very dirty hack, one could stick some invisible characters, like em-spaces (U+2003), in front of the date:
  • ````
  • ```mermaid
  • gantt
  • tickInterval 1day
  • axisFormat                                    %d %b
  • dateFormat DD-MM
  • TUG :a2, 19-07, 3d
  • ```
  • ````
#1: Initial revision by user avatar samcarter‭ · 2024-02-02T17:39:56Z (11 months ago)
As a quick and very dirty hack, one could stick some invisible characters, like em-spaces, in front of the date:


````
```mermaid
gantt
	tickInterval 1day
	axisFormat                                    %d %b
	dateFormat DD-MM
	TUG :a2, 19-07, 3d
```
````