Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Gantt - suitable xAxis for longer project #125

Closed
knsv opened this issue Mar 5, 2015 · 4 comments
Closed

Gantt - suitable xAxis for longer project #125

knsv opened this issue Mar 5, 2015 · 4 comments

Comments

@knsv
Copy link
Collaborator

knsv commented Mar 5, 2015

In the example I posted above, I have from 2015-01-22 to 2015-07-15. I would like the axis labels to have ticks every week and the label to be the Monday of each week. 03/09, 03/16, 03/23, etc.

I realize that would be ~25 week ticks in this case which seems like a lot but the only good way I can tell to show that "sprint 3 starts on the week of 03/23" for example.

knsv added a commit that referenced this issue Mar 5, 2015
knsv added a commit that referenced this issue Mar 5, 2015
@knsv
Copy link
Collaborator Author

knsv commented Mar 5, 2015

@nickwynja I have boosted the range for which week ticks are applied. This is in the master branch now but not release. Try it out and see how it works.

@nickwynja
Copy link

This is looking better for me. Thanks!

I figured out the custom formatting you have in axisFormatter and used the following to get the axis labels the format that we work in:

 // Monday a week
    ["%-m/%-d", function (d) {
        return d.getDay() == 1;
    }],

That outputs this and makes it easy to say "Sprint 3 starts on 5/11" as my managers typically ask:

screen shot 2015-03-05 at 1 19 13 pm

@knsv
Copy link
Collaborator Author

knsv commented Mar 7, 2015

Good! Will keep it as it is then.

@knsv
Copy link
Collaborator Author

knsv commented Jun 7, 2015

I am closing issues and see this one as closed. Let me know if you feel differently!

@knsv knsv closed this as completed Jun 7, 2015
mgenereu pushed a commit to mgenereu/mermaid that referenced this issue Jun 25, 2022
…and_yarn/y18n-4.0.1

Bump y18n from 4.0.0 to 4.0.1
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants