giocomai / ganttrify

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

Wrong month labels are printed. #24

Closed nickriches closed 7 months ago

nickriches commented 2 years ago

Hi. I am using ganttrify to create a gantt chart, but the Month Labels are coming out wrong. The values are around a third of what they should be when month_date_label is set to FALSE. When month_date_label is set to TRUE, the months are appropriately labelled.

gantt_copy.csv

CODE:

df <- read_csv("ORA_gantt.csv")

ganttrify(project = df, project_start_date = "2022-10", size_text_relative = 0.8, month_date_label = TRUE, # Works only when set to TRUE month_breaks = 6, mark_years = TRUE)`

So there is a good work around, but original behaviour is puzzling.

Thanks for cool package.

giocomai commented 2 years ago

I can confirm this behaviour. Thanks for reporting it! It will be fixed