ganttrify icon indicating copy to clipboard operation
ganttrify copied to clipboard

Colorize/emphasize test spots based on entity

Open swaldhoer opened this issue 3 years ago • 1 comments

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"):

  • entities_highlight="entity_A": all grey, except "entity_A":

    ganttrify(project = ganttrify::test_project,
              spots = ganttrify::test_spots,
              entities_highlight="entity_A",          # new
              project_start_date = "2021-03",
              font_family = "Roboto Condensed")
    
  • entities_differentiate=TRUE and entities_highlight="entity_A": colorize all, but add some emphasizes to "entity_A":

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

swaldhoer avatar Feb 09 '22 11:02 swaldhoer

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

giocomai avatar Mar 08 '22 10:03 giocomai