giocomai / ganttrify

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

Colorize/emphasize test spots based on entity #28

Open swaldhoer opened 2 years ago

swaldhoer commented 2 years ago

Often in projects each test spot has a different person/entity in the lead. For the individual planing it would be beneficial if one could highlight this in the GANTT. I think of something like that:

test_spots <- tibble::tribble(~activity, ~spot_type, ~spot_date, ~lead
                "1.1. That admin activity", "D",5,"entity_A",
                "1.3. Fancy admin activity", "E", 7,"entity_A",
                "2.2. Actual R&D stuff", "O", 7,"entity_A",
                "2.2. Actual R&D stuff", "O", 9,"entity_B",
                "2.2. Actual R&D stuff", "O", 11,"entity_A",
                "WP2 - Whatever actual work", "M", 6"entity_C",
)

To get an overall overview, with every entity having a separate color (e.g., entities_differentiate=TRUE):

ganttrify(project = ganttrify::test_project,
          spots = ganttrify::test_spots,
          entities_differentiate=TRUE,            # new
          project_start_date = "2021-03",
          font_family = "Roboto Condensed")

An then entity_A could see what is in their lead (e.g., entities_highlight="entity_A" ior combining entities_differentiate=TRUE and entities_highlight="entity_A"):

giocomai commented 2 years ago

Thanks for sharing this concept in such detail, I'll consider it next time I'll work on this.