giocomai / ganttrify

Create beautiful Gantt charts with ggplot2
https://ganttrify.europeandatajournalism.eu/
GNU General Public License v3.0
654 stars 61 forks source link

Show years rather than months #23

Open digitalwright opened 2 years ago

digitalwright commented 2 years ago

Thanks for your excellent application! I found the web tool especially accessible. I have one small suggestion: When producing a chart spanning 4+ years, the months become too crowded and unreadable. It would be great if the web application had an option to display by year rather than month or show fewer month labels.

giocomai commented 2 years ago

Thanks for reporting this. Better support for lenghty timelines is already planned, and will be included in the web application.

If you're in R, keep in mind that the output is still a ggplot object, so you can customise the y axis as you would expect, with something like:

  ... +
  scale_x_date(date_breaks = "6 months")`
matthiasheuser commented 2 years ago

Dear giocomai, joining digitalwright in thanking for this great GANTT implementation! I was about to open a request for the possibility of working with weeks rather than months. But in fact your answer solves that - scale_x_date(date_breaks = "1 week") i perfect for me. Maybe you could just put that in the general readme because to me, that was an astonishing limitation, since in my experience you'd expect a GANTT viz to default to weeks, not months. A genuine numerated "week" scale would be even better, but the workaround is fine too. If you had time to get around to that... Thanks a lot in any case! Best wishes

giocomai commented 2 years ago

Well received, this will be possible in a future update.

intltechventures commented 2 years ago

Option for Quarters would also be nice.