Skip to content

custom annotation of charts got broken in R4.4 #53

@oleksii-nikolaienko

Description

@oleksii-nikolaienko

Hi and thanks for such an excellent package. The question I have is related to adding custom elements to the chart using annotate, geom_text or geom_segment to produce something like this:

image

This hack used to work well in R4.3 but not in R4.4, where in the latter, these custom elements cannot find their correct position on y-axis anymore:

ganttrify(project=ganttrify::test_project) + geom_text(aes(x=as.Date("2025-02-01"), y=ganttrify::test_project$activity[1], label="text"))
or
ganttrify(project=ganttrify::test_project) + annotate("text", x=as.Date("2025-02-01"), y=ganttrify::test_project$activity[1], label="label")

image

Is this by design or can this possibly be fixed?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions