Gantt: Weekscale with weeknumbers?

+2 votes
asked Jun 3, 2020 in Wanted features by mawi (620 points)

Hello!

I would very much like to have the weekscale display weeknumbers instead of dates.

So month display is ok in weekscale, but instead of having the week starting date displayed in the week row for each row, display weeknumber. Perhaps (optionally) prefix with "W". 

  • Simple implementation could just set it manually, as you do with "project starts 2020/06/05"; maybe set week start there too, e g "project starts 2020/06/05 week 23" or maybe a separate directive tied to the weekscale directive, "printscale weekly firstweek 23". This is flexible, as it is manual and allows the user to use any of the most common project numbering use cases:
    • Calendar week numbering
    • Week numbering from project start
    • etc
  • More advanced would be to calculate the weeknumber. The problem is then you have to have a setting for the first week (see shot above, for instance).
BR! /marcus
commented Sep 5, 2020 by mawi (620 points)

Here is how it could look (using imgur, somehow image edit thingy is having a bad day):

/mawi

commented Oct 1, 2020 by Serge Wenger Work (15,620 points)
Dear PlantUML team,

Did you think about this feature? One of my customer want a planning with only week numbers.

It is really an issue for me.

Thanks for this great tool
commented Apr 7, 2021 by mawi (620 points)

I created a copy of this request as a github issue as well, here:
https://github.com/plantuml/plantuml/issues/525

1 Answer

+1 vote
answered Apr 7, 2021 by plantuml (294,960 points)
selected Apr 9, 2021 by mawi
 
Best answer

Ok, since many people want this, we have changed the behavior of last beta http://beta.plantuml.net/plantuml.jar

Concerning week number, we follow ISO-8601 rules :

However, you can change the rule :

@startuml
printscale weekly
weeks starts on Sunday and must have at least 1 days

project starts 2021/01/25

[Prototype design] lasts 20 days
[Code prototype] lasts 20 days
[Write tests] lasts 15 days
[Code prototype] starts at [Prototype design]'s end
[Write tests] starts at [Code prototype]'s start
@enduml

Does it sound good ?

commented Apr 8, 2021 by mawi (620 points)

Hi! Thanks for this, looks promising!

One question: Does this mean that its now week numbers instead of the week starting date? 

Or does the directive...

weeks starts on Sunday and must have at least 1 days

...toggle weekscale to displaying week numbers instead of the week starting date?

I suspect that both options are of interest, to different people / different situations.

BR! /marcus

commented Apr 8, 2021 by plantuml (294,960 points)

One question: Does this mean that its now week numbers instead of the week starting date?

Yes, exactly

I suspect that both options are of interest, to different people / different situations.

We'll see if people complains about it, and we will then add an option :-)

Or does the directive(...)

This directive is really a call to both methods Calendar.setFirstDayOfWeek() and Calendar.setMinimalDaysInFirstWeek() from Java API

commented Jul 17, 2021 by anonymous
edited Aug 28, 2021
Hi,

Can we have an option for calendar date instead of week number ? Not everyone needs week number and some of us wants the calendar date instead

Thanks
commented Sep 10, 2021 by anonymous

I wanted the month/dates option, since I was tracking my work items based on the dates. Now with the dates replaced with week number, I am not able to see the date of completion from the gantt chart anymore. Can we make it backward compatible, so that previous versions were working correctly?

commented Sep 12, 2021 by plantuml (294,960 points)

We are going to propose an option to go back to clendar date instead of week number.

Something like "printscale weekly with calendar date".

If you have an idea for a better syntax, please post it here !

Thanks.

commented Sep 13, 2021 by plantuml (294,960 points)

So with last beta http://beta.plantuml.net/plantuml.jar you can now have:

@startuml
printscale weekly with calendar date
Project starts the 6th of July 2020
[Task1] on {Alice} lasts 2 weeks
[Task2] on {Bob:50%} lasts 2 weeks
then [Task3] on {Alice:25%} lasts 3 days
@enduml

Hope this helps!

...