giocomai / ganttrify

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

Change Month Labels #46

Closed hasantahir closed 7 months ago

hasantahir commented 7 months ago

Hi there,

Is there a way to change the month labels on the x-axis from M1 to Mo1? I have milestone spots on the timeline and it would be nice to avoid confusion.

Cheers

giocomai commented 7 months ago

You mean, like this?

Update the package and customise the newly introduced month_label_string:

library("ganttrify")

ganttrify(project = ganttrify::test_project,
          project_start_date = "2024-01",
          font_family = "Roboto Condensed",
          month_label_string = "Mo")

Created on 2024-01-19 with reprex v2.1.0

hasantahir commented 7 months ago

Awesome, exactly what I was seeking. Thank you.