giocomai / ganttrify

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

Extent / change color pallet #19

Closed nise closed 1 year ago

nise commented 3 years ago

Could you describe how to change the color pallet in use.

For more then 5 work packages the colors are repeating.

giocomai commented 3 years ago

Yes, this is the prupose of the colour_palette parameter. You can pass a palette, or simply a character vector with hex of as many colours as you like, e.g. (colours at random):

ganttrify(project = ganttrify::test_project,
          colour_palette = c("#6ACCEA",
                             "#00FFB8",
                             "#B90000",
                             "#6C919C",
                             "#94A1A4",
                             "#6ACCEA",
                             "#67AEC3",
                             "#9ACEDE"))
nise commented 3 years ago

Thanx! I found it finally in the R code. Maybe you could add a list of properties with defaults and example in the readme