giocomai / ganttrify

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

Color from factor #20

Open rb643 opened 3 years ago

rb643 commented 3 years ago

Is it possible to change the color according to a separate vector/factor? I.e., I'd for example still like the work-package outline and formatting, but within each work-package would like to color the lines according to the person/team leading the activity or type of activity. So my input table would have an additional team/person/activity column to assign the color? Then would the package allow an standard ggplot legend to be added from that?

giocomai commented 3 years ago

Unfortunately, not at this stage ( it's one colour for Working Package) and it's not so straightforward to customise it differently. But I'll consider this a feature request and make it possible when hopefully later this year I'll make the whole package more solid.