-
-
Notifications
You must be signed in to change notification settings - Fork 5.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gantt: add top xaxis #1954
Gantt: add top xaxis #1954
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @nacc, this look great!
There are one thing that would make this even better. The feature need an on on/off switch similar to mirrorActors in sequence diagrams. Two things that we need to do:
- Add this in the configuration options so that it possible to turn is on/off on a site level when you add Mermaid
- Add a topAxis directive which will make it possible to turn on topAxis even if the site confiuration as topAxis as off
Is the on/off switch something you could help with?
Thanks again
/Knut
@knsv yep I can do that. I'll update the PR today! |
I think my branch has the changes requested correctly. I'm not a JS person at all, so please point me in a corrected direction if I did something wrong :) |
Thanks will review this PR today. |
Urgh, I see the problem, it was my misunderstanding of what hte translate method did. Fix incoming! |
Can you try with the fixlet I just pushed? |
@knsv the failure seems unrelated to my changes, from something in a different diagram type? |
I am leveraging a Gantt chart to generate a years-long Roadmap from text. This is for a large team, so it is quite large. A request I get from my stakeholders is for a top labelling axis in parallel to the current bottom one, so that the dates are labelled no matter where we are scrolled on the screen.
(trying to rebase now) |
will give it a spin! |
Ok, then I think this one is ready. I will remove that line and merge it! Thanks |
馃搼 Summary
Add a top x-axis to Gantt charts that mirrors the bottom x-axis
馃搹 Design Decisions
Straightforward copy and paste of existing code.
馃搵 Tasks
Make sure you
develop
branch