giocomai / ganttrify

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

Left justify activities #17

Closed cbud closed 3 years ago

cbud commented 3 years ago

Any idea how to left justify activities?

giocomai commented 3 years ago

You mean, like this?

library("ganttrify")
library("ggplot2")
ganttrify(project = ganttrify::test_project,
          spots = ganttrify::test_spots,
          project_start_date = "2020-03") +
  theme(axis.text.y = element_text(hjust = 0))

Created on 2021-03-16 by the reprex package (v1.0.0)

The output graph is a ggplot2 object, even if with some unusual features, so some theming options from ggplot just work.

I will consider adding this as a parameter.

giocomai commented 3 years ago

Here it is:

library("ganttrify")
ganttrify(project = ganttrify::test_project,
          spots = ganttrify::test_spots,
          project_start_date = "2021-04",
          axis_text_align = "left") 

Created on 2021-03-19 by the reprex package (v1.0.0)

cbud commented 3 years ago

Thanks!

On Fri, 19 Mar 2021, 11:04 pm Giorgio Comai, @.***> wrote:

Closed #17 https://github.com/giocomai/ganttrify/issues/17 via 4a400d9 https://github.com/giocomai/ganttrify/commit/4a400d909d6f76845e9cb4d262f14538b794dc0e .

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/giocomai/ganttrify/issues/17#event-4481235058, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAF5PUHGEYEB2UOT2O6YXDDTEMOT3ANCNFSM4ZHSILFQ .